MorrisJobke

Empty git branch 1 Jun 2013

If you do a complete rework of a project which is in a git repository, the previous history is really irrelevant. It would be great to start a new branch without any history. With the following commands you easily create such a branch. (via)

$ git symbolic-ref HEAD refs/heads/NEWBRANCH
$ rm .git/index