avatarHK Blog
Tools/Developer/Git

Recover Deleted Branch in Git

git reflog --no-abbrev    # find SHA1 for the commit at the tip of deleted branch
git checkout -b <your-branch> <sha>

Reference

How is this guide?

On this page