Recovering from git rebase accident
Have you lost some commits because of mistakes while doing git rebase?
No worries you wil find reference hashes to your original commits from .git/logs/refs/heads/BRANCH_NAME
After you have found correct hash before rebasing:
git checkout -b my-recovery-branch THAT_HASH
Then you can continue on that new branch, or merge it, or try new rebase etc...
Written by Juhamatti Niemelä
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#