To create a global git ignore that apply across all git repository
$ echo `.DS_Store` > ~/.gitignore $ git config --global core.excludesfile ~/.gitignore
Last updated 2 years ago