Saturday, September 10, 2016

GIT: How to create empty branch in GIT?

Execute the following command on the GIT terminal:

#Create Empty Branch
git checkout --orphan branch_name

#Clear Working Directory
git rm --cached -r .

Please share your feedback below. Hope you find this helpful!

CaptiveCode


No comments:

Post a Comment