You can create so-called "orphan" branches that have a disconnected history with
git switch --orphan <branch-name>
or
git checkout --orphan <branch-name>
The difference between the two is that git switch
will remove all the tracked files, whereas git checkout
will not. In the latter case if you want to remove all the files from the index and the working tree, you will have to run git rm -rf .