You’re deep in a feature branch with uncommitted changes, half-written code, and tests not passing yet. Then: “Hey, can you review this PR real quick?” or “There’s a critical bug in prod!”
Three options: copy the directory, clone the repo again, or use git worktree.
Option 1: Copy the Directory
cp -r myproject myproject-feature
cd myproject-feature
git checkout feature/new-api
Each copy has its own .git directory. That’s 500MB+ duplicated per copy. git fetch in one doesn’t update the others. Disk usage explodes.