Git reset to HEAD from cherry-pick
A cherry-pick is basically a commit, so if you want to undo it, you just undo the commit.
when I have other local changesStash your current changes so you can reapply them after resetting the commit.
$ git stash
$ git reset --hard HEAD^
$ git stash pop # or `git stash apply`, if you want to keep the changeset in the stash
when I have no other local changes
$ git reset --hard HEAD^
Comments
Post a Comment