Skip to content
Drew Daniels edited this page Dec 18, 2025 · 2 revisions

Git

Worktree Workflow

Inspiration

cd ~/project/test-project

# on `main`
# Create `review` worktree for reviewing PRs & MRs
git worktree add -b review ../project-review origin/main

# Create `work` worktree for working on my own features
git worktree add -b work ../project-work origin/main

# Create `scratch` worktree for throwaway work and testing
git worktree add -b scratch ../project-scratch origin/main

Clone this wiki locally