Answers
Short answers to specific Git questions, grouped by topic. Each page leads with the fix, then explains why.
Each answer covers one error message or one "how do I" question. The commands come first, so you can stop reading once the problem is gone. The pages are for developers who run several branches or coding agents on one repository and hit Git problems a single checkout never shows.
The answers fall into these topics:
- Git worktree answers: errors and setup questions, such as fixing "branch is already used by worktree" and removing a locked worktree
- Rebasing and stacked branch answers: keeping dependent branches current, such as rebasing a whole stack with --update-refs and rebasing a stack after a squash merge
- Coding agents and Git answers: problems that come from parallel agents, such as stopping two agents from overwriting each other and sharing node_modules across worktrees
- Git and GitHub: branch housekeeping, such as finding and restoring deleted branches on GitHub
For the longer explanation behind these fixes, start with What are Git Worktrees? and What are Stacked PRs?.
Worktrees
14 items
Rebasing & Stacks
2 items
Agents & Git
2 items
Git & GitHub
1 item