How do I add a global gitignore to SmartGit/hg?

rubo77 picture rubo77 · Jan 5, 2014 · Viewed 7.6k times · Source

I created a global .gitignore file (see https://help.github.com/articles/ignoring-files#global-gitignore) but how can I make this used for all my projects in SmartGit without adding it to the repositories?

Answer

rubo77 picture rubo77 · Jan 7, 2014

If you configure

git config --global core.excludesfile '~/.gitignore'

This also takes effect on Smartgit