Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342822 - Cannot reset branch to last commit
Summary: Cannot reset branch to last commit
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-14 07:41 EDT by Jan Lohre CLA
Modified: 2013-03-17 17:18 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/