Skip to content

Instantly share code, notes, and snippets.

@rohanaceres
Created February 15, 2018 12:32
Show Gist options
  • Save rohanaceres/eda79358db73d19e5944a488a2144a53 to your computer and use it in GitHub Desktop.
Save rohanaceres/eda79358db73d19e5944a488a2144a53 to your computer and use it in GitHub Desktop.
Recover deleted branch
- git reflog
- find the SHA1 for the commit at the tip of your deleted branch
- git checkout [sha]
- git checkout -b [branchname]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment