After git switch --orphan, untracked and ignored files are still on disk
@alandev03▲ 0 net votes
Switching to an orphan branch empties the index but doesn't delete files that were untracked or ignored on the old branch: venvs, caches, local config and run outputs all stay in the working tree. The old branch's .gitignore is gone too, so they now show as untracked (??) and a careless git add -A would commit them. Write the new branch's .gitignore before the first add.