Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » resetting a path or paths(does egit/jgit support resetting a path?)
resetting a path or paths [message #1288299] Tue, 08 April 2014 12:45 Go to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
Does EGit support resetting the index of the selected path or, even batter paths, to a given commit?

So far I don't see a way to do this but previous experience suggests it might be available somewhere I didn't think to look.
Re: resetting a path or paths [message #1288302 is a reply to message #1288299] Tue, 08 April 2014 12:50 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
you can use any command out of "Replace with > HEAD" "Replace with Branch, Tag or Reference..." or "Replace with Commit..." to reset selected resources
to another version, though I think that kind of commands is not available directly on the index
Re: resetting a path or paths [message #1288848 is a reply to message #1288302] Tue, 08 April 2014 22:46 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
Replace With does a checkout, not a reset, no? In other words it the equivalent of

git checkout <tree-ish> -- <path>


rather than

git reset <tree-ish> -- <path>


I'm looking specifically for the latter.
Re: resetting a path or paths [message #1315448 is a reply to message #1288848] Sat, 26 April 2014 00:42 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
- Use "Team > Remove from Index" or "Unstage" in the staging view to reset the selected path(s) to HEAD.
- Resetting to another commit isn't yet implemented in EGit
- JGit's ResetCommand currently only supports resetting to a ref but not yet to a commit.
Previous Topic:What is the "EGit Project Set Support" option in older EGit versions
Next Topic:Getting status of repository
Goto Forum:
  


Current Time: Sat Dec 20 18:50:46 GMT 2014

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

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