3

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?

rubo77
  • 19,527
  • 31
  • 134
  • 226
  • 1
    Did 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 Answers1

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