-
-
Save lolptdr/059340c84e88b270b1f94f6f70042b8d to your computer and use it in GitHub Desktop.
Undoing a git rebase
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find head commit | |
git reflog | |
# now reset hard - where N is the head commit found in the reflog | |
git reset --hard HEAD@{N} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment