-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop commit #174
Comments
Thanks for raising this feature request, this would definitely be useful to have in the Commit context menu. This page suggests the command the extension should run to drop a commit is From reading the Git documentation here, the argument From what I can see, the command should now be |
I didn't even think
I'm going to read the |
This will be available in v1.15.0. If you'd like to use it before the next release, you can download v1.15.0-beta.1, and install it following the instructions provided here. |
I dropped a commit accidentally and need to undo this, is this possible in any way? |
Hi @MuathAmer, In the Git Graph View’s Repository Settings Widget, you should be able to temporarily turn on “Include commits only mentioned by reflogs”. This should allow you to see the dropped commit, and then perform the required actions to include it back into your branch. |
@mhutchie |
Describe the feature that you'd like
I'd like to right-click a commit in Git Graph and select a Drop Commit command, which would basically run a rebase, omitting the commit.
Additional context (optional)
Sometimes, I work in a feature branch and commit to it even things that are not strictly related to the it (so that I don't lose the flow). After I'm done, I use
cherry-pick
to copy the commits to a new branch but am left with the original commits in the original branch.At this point, I need to run
git rebase -i HEAD~5
or similar and delete the commits I no longer need.It would be great if I could do this directly in the UI. It would be a sibling feature to Revert....
The text was updated successfully, but these errors were encountered: