Quantcast
Viewing all articles
Browse latest Browse all 23

Answer by Alex Gontmakher for Undoing a git rebase

I actually put a backup tag on the branch before I do any nontrivial operation (most rebases are trivial, but I'd do that if it looks anywhere complex).

Then, restoring is as easy as git reset --hard BACKUP.


Viewing all articles
Browse latest Browse all 23

Trending Articles