Git - Rebasing
You accidentally rebased a shared branch and want to undo it. Which command helps you restore the branch to its previous state?
git reflog to find previous commit, then git reset --hard <commit> to restore.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions