Setting up a global gitignore on Windows

I’m taking this as a reference for files that should be ignored by git:

git – .gitignore for Visual Studio Projects and Solutions – Stack Overflow.

Then copying them into .gitignore_global in %USERPROFILE% and then following these instructions http://help.github.com/ignore-files/ and running:


git config --global core.excludesfile ~/.gitignore_global

this now means that any git add only adds the files we care about such as source code and makefiles etc.

.