This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267899

Summary: Please add option to undo a commit
Product: versioncontrol Reporter: Christian Lenz <chrizzly>
Component: GitAssignee: Ondrej Vrabec <ovrabec>
Status: NEW ---    
Severity: normal CC: git
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description Christian Lenz 2016-09-06 09:31:53 UTC
It would be very cool and handy, if we can have an option to undo a commit via the IDE. Right click on the project -> git -> undo commit or smth like that, would be cool. Maybe in the history this should be possible too.


Regards

Chris
Comment 1 Ondrej Vrabec 2016-09-06 09:36:17 UTC
Git -> Revert/Recover -> Reset..., choose HEAD~1 as Revision and --soft as the reset option.
But you are probably asking for a shortcut to this?
Comment 2 Christian Lenz 2016-09-06 09:45:37 UTC
Yeah but I forgot the reset/recover thing. I don't know what the difference will be from undo commit to reset... So you can close the issue if there will no differences between those options.
Comment 3 Ondrej Vrabec 2016-09-06 11:34:04 UTC
(In reply to ChrisLE from comment #2)
> I don't know what the difference will be from undo commit to reset...
No difference.
> So you can close the issue if there will no differences between those options.
We can leave it open as it is actually quite reasonable request (even though it is just a shortcut), having such an action would be nice and easier to discover by less experienced users who don;t know anything about "git reset" command.
Comment 4 Christian Lenz 2016-09-06 11:36:29 UTC
Sure, make sense :)