2020年5月11日 星期一

Undoing a git rebase

Actually, rebase saves your starting point to ORIG_HEAD so this is usually as simple as:
git reset --hard ORIG_HEAD
However, the resetrebase and merge all save your original HEAD pointer into ORIG_HEAD so, if you've done any of those commands since the rebase you're trying to undo then you'll have to use the reflog.

from : https://stackoverflow.com/questions/134882/undoing-a-git-rebase

沒有留言:

張貼留言