import DocCardList from '@theme/DocCardList';

# 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](./worktrees.md): errors and setup questions, such as [fixing "branch is already used by worktree"](./worktrees/branch-already-used-by-worktree.md) and [removing a locked worktree](./worktrees/remove-locked-worktree.md)
- [Rebasing and stacked branch answers](./rebasing-and-stacks.md): keeping dependent branches current, such as [rebasing a whole stack with --update-refs](./rebasing-and-stacks/git-rebase-update-refs.md) and [rebasing a stack after a squash merge](./rebasing-and-stacks/rebase-stack-after-squash-merge.md)
- [Coding agents and Git answers](./agents-and-git.md): problems that come from parallel agents, such as [stopping two agents from overwriting each other](./agents-and-git/agents-overwriting-each-other.md) and [sharing node_modules across worktrees](./agents-and-git/node-modules-in-worktrees.md)
- Git and GitHub: branch housekeeping, such as [finding and restoring deleted branches on GitHub](./git/github-restore-deleted-branch.md)

For the longer explanation behind these fixes, start with [What are Git Worktrees?](/learn/concepts/git/git-worktrees) and [What are Stacked PRs?](/learn/concepts/git/stacked-prs).
