Create an empty pristine branch in your git repo
Submitted by clemens on Fri, 2015/01/23 - 1:35pm
In need for a new empty branch for restarting an idea I need a empty branch
git checkout --orphan NEWBRANCH
git rm -rf .
don't do the commands in reverse order. don't forget the rm -rf command either.
Resource
http://bitflop.com/tutorials/how-to-create-a-new-and-empty-branch-in-git.html