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
Best helpers
Kenneth Duda
+5
TheLimper
+5
JoshuaFicy
+5
Leshui
+5
Omar Kooheji
+5
Blue Waters
+5
Judi
+5
Amauri
+5
Insane
+5
Chris c
+5
KEM_6
+5
SweetSweet
+5
Paola Garcia
+5
OlegSerov
+5