Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » contents of ~/.gitignore not used (global ~/.gitignore not being processed)
contents of ~/.gitignore not used [message #1752676] Thu, 26 January 2017 00:01 Go to next message
Michael Giroux is currently offline Michael GirouxFriend
Messages: 2
Registered: January 2017
Junior Member
I use Eclipse on a Mac system. I end up with lots of untracked .DS_STORE files in my projects.

I can ignore these by placing a .gitignore file in the root of each project, but Git already has a solution for this. I have a global ignore file at ~/.gitignore that works just fine when using command line Git, but the file is not respected when using Eclipse/Egit.

The Team/Git preferences do not provide a means to configure the user .gitignore file, so I'm thinking this is a limitation.

Is there something I'm overlooking? Is it possible to make EGit use the ignore list from the user ~/.gitignore file?

Re: contents of ~/.gitignore not used [message #1752752 is a reply to message #1752676] Thu, 26 January 2017 21:16 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 962
Registered: July 2009
Senior Member
did you add the following configuration to ~/.gitconfig :

[core]
excludesfile = <path to ~/.gitignore>

if not, this explains why it's not respected, see "core.excludesFile"
in ftp://www.kernel.org/pub/software/scm/git/docs/git-config.html
Previous Topic:git ssh push hangs with eclipse and tfs
Next Topic:Tracking the deletion of remote branches?
Goto Forum:
  


Current Time: Wed Nov 22 20:31:41 GMT 2017

Powered by FUDForum. Page generated in 0.01782 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software