Search code examples
gitsmartgit

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


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?


Solution

  • If you configure

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

    This also takes effect on Smartgit