Create an empty pristine branch in your git repo

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