Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Replace with HEAD Revision does not work
Replace with HEAD Revision does not work [message #1140356] Wed, 16 October 2013 09:48 Go to next message
Flavio Donze is currently offline Flavio DonzeFriend
Messages: 211
Registered: July 2009
Location: Switzerland
Senior Member

Sometimes when I want to revert my changes on a file, EGit still marks the file as changed. The strange thing is that sometimes it works fine.

I rightclick on the changed file and choose "Replace With" => "HEAD Revision". The changes are then reverted but the file is still marked as "changed".

My local branch is set to "master" and is in synch with the remote tracking branch "origin/master".

I'm running on Windows 7, Eclipse 4.3.1, EGit 3.1.0.
core.autocrlf is true
Preferences => General => Compare/Patch => Ignore white space (checkbox enabled).

Is there a better way to revert changes on files (not the whole repository)?
Is this a bug, should I create an issue?


Prozessmanagement und Qualit├Ątsmanagement Software QMS/IMS
Re: Replace with HEAD Revision does not work [message #1240010 is a reply to message #1140356] Wed, 05 February 2014 14:17 Go to previous messageGo to next message
Mike Meessen is currently offline Mike MeessenFriend
Messages: 1
Registered: February 2014
Junior Member
I'm having the same issue here (same environment, same settings). Any new findings on it??
Re: Replace with HEAD Revision does not work [message #1240082 is a reply to message #1240010] Wed, 05 February 2014 16:59 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1147
Registered: July 2009
Senior Member
If core.autocrlf is set to true you may suffer from
Try the egit nightly build which contains a fix solving this bug. You can install it from
Previous Topic:Automatic maintenance of application server side repository
Next Topic:Does EGit support the double asterisk in .gitignore files
Goto Forum:

Current Time: Wed Jul 08 05:58:44 GMT 2020

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

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

Back to the top