I know that a new orphan branch can be created like so:
git checkout --orphan <new_branch>
however this uses my current work tree which I want to leave completely untouched. I tried:
git --work-tree=/tmp/test checkout --orphan <new_branch>
but this also seem to use my current work tree and not the one I specified using --work-tree.
I could use a second clone, but that does not seem optimal. Any way of solving this using work-trees?