I\'ve just discovered git checkout --orphan, but I don\'t know how to use it. Its help page says it creates a new unparented branch.
git checkout --orphan
In th