Answers for "restore deleted origin branch from local branch"

2

git remove deleted remote branches

git fetch origin --prune
Posted by: Guest on August-12-2020
0

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.
Posted by: Guest on April-15-2021

Code answers related to "restore deleted origin branch from local branch"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language