Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Prevent .gitignore from being modified automatically
Prevent .gitignore from being modified automatically [message #1678661] Mon, 16 March 2015 09:30 Go to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi,

In one specific Java project I need to commit the class files in the bin folder. So I've manually added this to the
..gitignore file:

!/bin/

Nevertheless EGit (I assume so) occasionally adds another entry:

/bin/

The result is that the .class files are no longer stored in Git. Is there a way to prevent EGit from adding that entry
only in that specific project?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Re: Prevent .gitignore from being modified automatically [message #1679331 is a reply to message #1678661] Mon, 16 March 2015 15:20 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
This is currently not supported. EGit currently only has a global preference to switch on/off auto-ignoring of
derived resources globally for the complete workspace.

If this preference is switched on it will auto-generate a new ignore rule if a resource change event signals
there are new derived resources and these resources are not ignored according to the current gitignore rules.
If this preference is switched off it will not generate ignore rules for derived resources.
Re: Prevent .gitignore from being modified automatically [message #1679566 is a reply to message #1679331] Mon, 16 March 2015 17:15 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 16.03.2015 um 16:20 schrieb Matthias Sohn:
> This is currently not supported. EGit currently only has a global preference to switch on/off auto-ignoring of
> derived resources globally for the complete workspace.
>
> If this preference is switched on it will auto-generate a new ignore rule if a resource change event signals
> there are new derived resources and these resources are not ignored according to the current gitignore rules.
> If this preference is switched off it will not generate ignore rules for derived resources.
Thanks, got it ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:# WARNING: head commit changed in the meantime
Next Topic:EGit Deleted My Project!
Goto Forum:
  


Current Time: Wed Apr 24 14:02:35 GMT 2024

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

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

Back to the top