While helping a friend with a git problem today, I had to introduce a branch that needed to be totally separate from the master branch. The contents of this bra
master
Sometimes I just want to create empty branch in project instantly then start doing work, I will just excute following command :
git checkout --orphan unrelated.branch.name git rm --cached -r . echo "init unrelated branch" > README.md git add README.md git commit -m "init unrelated branch"