Skip to content

Instantly share code, notes, and snippets.

@MikeRogers0
Created September 1, 2013 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeRogers0/6406937 to your computer and use it in GitHub Desktop.
Save MikeRogers0/6406937 to your computer and use it in GitHub Desktop.
How to setup a global .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
*.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
git config --global core.excludesfile 'PATH/TO/YOUR/.gitignore'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment