While helping a friend with a git problem today, I had to introduce a branch that needed to be totally separate from the master branch. The contents of this bra
master
In recent Git versions, 2.27 at least, this can be cleanly achieved with the switchcommand:
switch
git switch --orphan
Official documentation: https://www.git-scm.com/docs/git-switch