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

Bug 342822

Summary: Cannot reset branch to last commit
Product: [Technology] EGit Reporter: Jan Lohre <jan.von.loewenstein>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: matthias.sohn, robin.rosenberg
Version: 1.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Jan Lohre CLA 2011-04-14 07:41:37 EDT
Hi,

I am missing the Reset... context menu entry on the repository node (same dialog as on the project node with Team->Reset...) and on the reference node for HEAD.

Steps to reproduce:
1. Create a git repository
2. Commit something (e.g. test.txt)
3. Change that something (e.g. test.txt)
4. Try to revert your uncommited changes

I would do a 'git reset --hard HEAD' on the gitbash but cannot find an equivalent in EGit.

Best regards,
Jan
Comment 1 Robin Rosenberg CLA 2013-03-17 17:18:12 EDT
A reset option has been available on the repository node in since 1.2 with https://git.eclipse.org/r/#/c/4615/