import DocCardList from "@theme/DocCardList";

# Git and Version Control

Start with Git's data model, then learn how to manage parallel and dependent branches for people and coding agents.

These articles are for developers who already commit and push every day and now run several branches, or several coding agents, at once. [What is Version Control?](./version-control.mdx) covers how Git records, combines and recovers changes. [What are Git Worktrees?](./git-worktrees.mdx) and [Git Worktrees for AI Coding Agents](/learn/git-worktrees-for-ai) explain how to give each task its own working directory.

For dependent branches, read [Merge vs Rebase](./merge-vs-rebase.mdx) first, then [What are Stacked PRs?](./stacked-prs.mdx). [Cherry-pick vs Rebase](./cherry-pick-vs-rebase.mdx) and [Force-with-lease](./force-with-lease.mdx) cover moving commits and pushing rewritten history safely. For a specific error message, the [Answers](/learn/answers) section has short fixes.
