Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git bring back deleted branch from local

user@MY-PC /C/MyRepo (master)
$ git branch -D master2
Deleted branch master2 (was 130d7ba).    <-- This is the SHA1 we need to restore it!

user@MY-PC /C/MyRepo (master)
$ git branch master2 130d7ba
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #bring #deleted #branch #local
ADD COMMENT
Topic
Name
8+3 =