Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 329939

Summary: Context Menu for Files. Team->Checkout
Product: [Technology] EGit Reporter: David Carver <d_a_carver>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, robin, stefan.lay
Version: 0.10.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description David Carver CLA 2010-11-10 14:10:13 EST
At a git command line, if I want to restore a file, from what is stored in the repository, I can do a git checkout filenamepath/filenametocheckout to restore the file to the previous state.

With eGit, I see no such opton, the only option that can close as the History view, but that allowed me to check out a commit id, and not the individual file.
Comment 1 Lars Vogel CLA 2010-11-10 14:11:24 EST
+1 for this request. Would be really useful.
Comment 2 Stefan Lay CLA 2010-11-10 15:57:06 EST
There is Replace with -> File in Git Index on file level.
What is missing is Replace With -> HEAD.

If Replace With -> HEAD was there, would you still want to have "Checkout" in the team menu?
Comment 3 Lars Vogel CLA 2010-11-10 15:59:02 EST
Replace With -> HEAD would be sufficient for me. 

@David?
Comment 4 David Carver CLA 2010-11-10 16:06:43 EST
(In reply to comment #3)
> Replace With -> HEAD would be sufficient for me. 
> 
> @David?

Yeah, Replace With->Head would work.
Comment 5 Robin Stocker CLA 2013-05-18 16:16:30 EDT
Replace With -> HEAD Revision is available in current releases of EGit.
Comment 6 Lars Vogel CLA 2013-05-19 09:21:38 EDT
Thanks, that is a useful option