Global .gitignore for all repositories
Ususally when you setup a new git project, you add some files to .gitignore: precompiled files, backups, system files.
Git supports global ignores. to setup it, create ~/.gitignore with some global ignores:
.DS_Store
*.pyc
*~
And configure git:
git config --global core.excludesfile ~/.gitignore
Written by Oleg Efimov
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Gitignore
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#