Last Updated: February 25, 2016
·
4.076K
· sannis

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