如何向SmartGit/hg添加全局gitignore?

rub*_*o77 3 git smartgit

我创建了一个全局.gitignore 文件(请参阅https://help.github.com/articles/ignoring-files#global-gitignore)但是如何在不将其添加到存储库的情况下将其用于SmartGit中的所有项目?

rub*_*o77 10

如果你配置

git config --global core.excludesfile '~/.gitignore'
Run Code Online (Sandbox Code Playgroud)

这也对Smartgit有效