Git - global .gitignore file code example Example: set global git ignore touch ~/.gitignore git config --global core.excludesfile ~./gitignore