Created
June 14, 2013 18:37
-
-
Save rymawby/5784205 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
you saved me 1 day of work!