What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-11-07 22:07:23
git undo deleted local branch
git reflog //You can use git reflog to find the SHA1 of the last commit of the branch. From that point, you can recreate a branch using git branch branchName <sha1> user@MY-PC /C/MyRepo (master) $ git branch -D master2 Deleted branch master2 (was ... Add solution