Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to restore deleted branch in git

Yes, you should be able to do git reflog --no-abbrev and find the SHA1 for 
the commit at the tip of your deleted branch, then just git checkout [sha].
And once you're at that commit, you can just git checkout -b [branchname] to
recreate the branch from there.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #restore #deleted #branch #git
ADD COMMENT
Topic
Name
9+9 =