Using Git Worktree
Workflow
- Create a dedicated worktree per task/branch.
- Keep dependency installs and build artifacts isolated per worktree as needed.
- Run tests in each worktree before commit and before push.
- Remove stale worktrees after merge to avoid confusion.
- Keep naming consistent so branch ownership and purpose stay clear.