how to ignore files in git commandline code example Example: how to git ignore a file git config --global core.excludesfile ~/.gitignore_global