Most of the time in git you will be creating branches of your main project and working on them. What if you wanted to create a git headless branch called ‘documentation’? It doesn’t really deserve it’s own repository because it’s so closely related. The git project itself does this with documentation. The git project repository has separate branches for master, docs and man pages etc too. Here’s how you do it.
Go into your git project and type
git symbolic-ref HEAD refs/heads/empty
touch .gitignore
git add .gitignore
git commit -m 'Initial headless branch commit'
That’s it - now you have a new branch ‘empty’.