Saturday, September 12, 2020

Restore a deleted branch in Git - Mithun Technologies - +91-9980923226

 

 

Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com

                                                       http://mithuntechnologies.com/
                                                       http://mithuntechnologies.co.in/

 ## Pre-requisite: You have to know the  'sha' (Simple Hashing Algorithm)  for the  deleted branch using below command.
git reflog

# Now you have two options, either checkout using sha  or HEAD
git checkout  -b <deleted branch> <sha> 

(OR)

git checkout HEAD@{18}










Ansible Installation in Amazon Linux - Mithun Technologies - 9980923226

  Mithun Technologies            +91-9980923226              devopstrainingblr@gmail.com                                                 ...