Create the global gitignore. $ touch .gitignore_global let git know where your global ignore file is located at. $ git config --global core.excludesfile ~/.gitignore_global profit.