Skip to content

Instantly share code, notes, and snippets.

@jtdressel
Created February 22, 2012 19:06
Show Gist options
  • Save jtdressel/1886686 to your computer and use it in GitHub Desktop.
Save jtdressel/1886686 to your computer and use it in GitHub Desktop.
My global .gitignore file
#http://help.github.com/ignore-files/
#http://sujee.net/tech/articles/gitignore/
# 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
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store*
ehthumbs.db
Icon?
Thumbs.db
.swp
.out
.lock
#java specific #
######################
*.class
#python specific#
*.pyc
@jtdressel
Copy link
Author

Assuming you save this file to ~/.gitignore_global run the following command to have git ignore files globally.
git config --global core.excludesfile ~/.gitignore_global

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment