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 - Please add option to undo a commit
Summary: Please add option to undo a commit
Status: NEW
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 8.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-06 09:31 UTC by Christian Lenz
Modified: 2016-09-06 11:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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