Created
April 21, 2012 15:27
-
-
Save mitchallen/2437727 to your computer and use it in GitHub Desktop.
Example global .gitignore file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################### | |
# Global .gitignore Flle | |
# Reference: http://help.github.com/ignore-files/ | |
# Save this in a file: ~/.gitignore_global | |
# Then at the command line (you will see more info if a repo is in the current folder): | |
# git config --global core.excludesfile ~/.gitignore_global | |
# git config --list | |
##################### | |
# Maven # | |
######### | |
target/ | |
# Eclipse # | |
########### | |
*.classpath | |
.settings/ | |
# 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* | |
ehthumbs.db | |
Icon? | |
Thumbs.db |
While stuff like .DS_Store*
should absolutely be in .gitignore_global
, stuff like *.o
you might not want in there, since you might forget to .gitignore
it for other devs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use this: https://github.com/github/gitignore