Setting up Git Ignore globally Always ignore .DS_Store and vim swap files Create ~/.gitignore .DS\_Store *.sw? setup your global core.excludesfile configuration file to point to this global ignore file $ git config --global core.excludesfile ~/.gitignore