For all those who aren’t up with it, there’s a file you can put in your home directory called “.gitignore_global”. Read more about it here: https://help.github.com/articles/ignoring-files
Basically, it allows all your projects to ignore those pesky files you always ignore anyway, automatically. I thought it might be useful to post mine (ignores netbeans, logs, databases, mac files, android developer kit files, xcode files, eclipse files and compiled files):
# Compiled source # ################### *.com *.class *.dll *.exe *.o *.so # Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip # Logs and databases # ###################### *.log *.sql *.sqlite # OS generated files # ###################### .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes Icon? ehthumbs.db Thumbs.db # Netbeans # ############ nbproject # android # ########### # built application files *.apk *.ap_ # files for the dex VM *.dex # Java class files *.class # generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties # IOS # ####### *.swp *.lock *~.nib DerivedData/ build/ *.pbxuser *.mode1v3 *.mode2v3 *.perspectivev3 !default.pbxuser !default.mode1v3 !default.mode2v3 !default.perspectivev3 xcuserdata *.moved-aside # eclipse # ########### *.pydevproject .project .metadata bin/** tmp/** tmp/**/* *.tmp *.bak *.swp *~.nib local.properties .classpath .settings/ .loadpath # External tool builders .externalToolBuilders/ # Locally stored "Eclipse launch configurations" *.launch # CDT-specific .cproject # PDT-specific .buildpath
There you have it, I use netbeans, xcode, android and a mac. Just a helpful tip.