This creates a new repository root (empty
), clones all commits and rebases them to the new root (review
).
The diff between review
and empty
therefor includes the whole codebase as addition.
git switch --orphan empty
git commit --allow-empty -m 'empty'
git checkout main
git checkout -b review