It seem's a couple of times now i've needed the ability to create empty GIT branches in a repository so that I could seperate some code. Be that documentation or just seperate parts of a project, it's very useful (and saves having to create another repo). But everytime I need it I can never remember the commands to run, and the results that Google brings back usually are for old versions or the commands have changed. So, mainly for my own reference, this is how to create a completely empty branch in GIT...
git symbolic-ref HEAD refs/heads/newbranchnamehere
git rm --cached *
rm *
At this point put in or create your new files, then add them as you usually would and commit and push.
git add a.rb
git commit -m 'insert witty commit message here'
git push origin newbranchnamehere
