Skip to main content

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? covers how Git records, combines and recovers changes. What are Git Worktrees? and Git Worktrees for AI Coding Agents explain how to give each task its own working directory.

For dependent branches, read Merge vs Rebase first, then What are Stacked PRs?. Cherry-pick vs Rebase and Force-with-lease cover moving commits and pushing rewritten history safely. For a specific error message, the Answers section has short fixes.