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?
Asked
Active
Viewed 8,020 times
3

rubo77
- 19,527
- 31
- 134
- 226
-
1Did you configure the global gitignore file (see http://stackoverflow.com/questions/7335420)? If it works for command line, it will work for SmartGit as well. – mstrap Jan 06 '14 at 09:57
-
possible duplicate of [global git ignore](http://stackoverflow.com/questions/7335420/global-git-ignore) – rubo77 Jan 07 '14 at 11:01
-
thx, it worked like in that answer – rubo77 Jan 07 '14 at 11:02
1 Answers
10
If you configure
git config --global core.excludesfile '~/.gitignore'
This also takes effect on Smartgit

rubo77
- 19,527
- 31
- 134
- 226
-
[@Dirk](http://stackoverflow.com/users/2324028/dirk): you [sugested to remove the quotes](http://stackoverflow.com/review/suggested-edits/12391029), why? – rubo77 May 18 '16 at 09:10