Universal gitignore
Tired of having to make sure every branch (or even all your repositories) have the same gitignore? You can set up a universal gitignore file and then point to it in your system or user level gitconfig file (hidden file named “.gitconfig”). This file should be in your home directory or C:/Users/username on Windows. The line to point to your universal gitignore looks like this:
[core] excludesfile = /path/to/your/local/.gitignore