Set up a global .gitignore

A kind user mentioned to me that another very important thing to do when setting up Git is to set up a global.gitignorefile. A .gitignorefile is used by Git to globally ignore a list of files that you may not want in your repos, such as: .jar, .exe, .DS_Store, etc. To set this up, copy the following into your terminal of choice:

git config --global core.excludesfile '~/.gitignore'

on a mac:

echo .DS_Store >> ~/.