Sometimes you want to create a completely empty git branch in a repository (for example for documentation, static site generation etc). Here is how to accomplish this. Replace
empty-branch with the branch name you want to create.
git checkout --orphan empty-branch
git rm -rf .
git commit --allow-empty -m "root commit"
git push origin empty-branch