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

git, smartgit

Solution

If you configure

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

This also takes effect on Smartgit

Problem

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?

Original source

Related problems