Nov 10, 2018

How to ignore files in Git

To ignore files in Git, for example, to ignore *.orig files

put

*.orig

in ~/.gitignore

Then run this:
$  git config --global core.excludesfile ~/.gitignore