Skip to content

Instantly share code, notes, and snippets.

@hoyangtsai
Last active February 20, 2022 07:09
Show Gist options
  • Save hoyangtsai/bbc3dfc24c5c9e314c80fac8552157a8 to your computer and use it in GitHub Desktop.
Save hoyangtsai/bbc3dfc24c5c9e314c80fac8552157a8 to your computer and use it in GitHub Desktop.
undo git rebase
git reflog
git reset --hard HEAD@{<number>}
@hoyangtsai
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment