Accidentally deleted branch, how to restore

Hi,

please don’t create more than one topic of the same question, this won’t speed up replies. I’ve closed the duplicated topic.

In terms of deleted branches, please learn more about reflog and extract the commit SHA1 your branch was on. Then use the checkout command.

git reflog

git checkout -b <branchname> <sha1> 

Cheers,
Michael

3 Likes