2014-01-05 34 views
3

我創建了一個全球.gitignore文件(請參閱https://help.github.com/articles/ignoring-files#global-gitignore),但是如何將它用於SmartGit中的所有項目而無需將其添加到存儲庫?如何將全局gitignore添加到SmartGit/hg?

+1

你配置全局gitignore文件(見http://stackoverflow.com/questions/7335420)的效果呢?如果它適用於命令行,它也適用於SmartGit。 – mstrap

+0

[global git ignore]可能的重複(http://stackoverflow.com/questions/7335420/global-git-ignore) – rubo77

+0

thx,它的工作方式就像在回答 – rubo77

回答

10

如果配置

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

這也發生在Smartgit

+0

[@Dirk](http://stackoverflow.com/users/2324028/dirk):你[爲消除引號而吞噬](爲什麼?)(http://stackoverflow.com/review/suggested-edits/12391029) – rubo77

相關問題