Skip to content

Instantly share code, notes, and snippets.

@rahearn
Created October 10, 2012 20:18
Show Gist options
  • Save rahearn/3868151 to your computer and use it in GitHub Desktop.
Save rahearn/3868151 to your computer and use it in GitHub Desktop.
Recovery steps for messed up rebase
Recovering from a botched rebase:
1) mess up a rebase
2) `git reflog` and find the last commit before the rebase started
3) `git reset --hard <<that commit>>`
4) rebase again and try not to mess up this time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment