AI Help
How do I work on two coding tasks at once without mixing their Git changes?
Give each coding task a separate Git worktree and branch, then verify its working directory and base commit.
Steps to follow
- Start from a known clean commit and create one worktree per task using supported Git or app controls.
- Check branch, path and git status inside each worktree before editing. Keep generated files and local services scoped appropriately.
- Review and test each task's diff independently before integrating its commits. Worktrees share repository history but have separate working files.
Example in practice
Illustrative example. A checkout for a search fix and another for a pricing page can proceed independently on separate branches.
Related AI help
- How do I check which AGENTS.md instructions Codex is using in a folder?
- How do I verify which files an AI coding agent actually changed?