HK Blog

Home

❯

Tools

❯

developer

❯

git

❯

Recover Deleted Branch in Git

Recover Deleted Branch in Git

Apr 10, 20251 min read

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

Reference

  • https://stackoverflow.com/questions/3640764/can-i-recover-a-branch-after-its-deletion-in-git

Graph View

Created with Quartz v4.5.0 © 2025

  • GitHub
  • Discord Community