Git Integration
Claude Code works directly with git — staging, committing, branching, and opening pull requests — and it powers the checkpoint system underneath.
Git tracks what changed, when, and why — and Claude Code works with it directly rather than around it: staging changes, writing commit messages, creating branches, and opening pull requests, all from a plain-English instruction (“commit my changes with a descriptive message”). You don't need to be a git expert; it runs largely in the background and is what makes reviewing Claude's changes, rolling back specific edits, and collaborating with a team without overwriting each other's work all possible.
Real-life use cases
Clean, reviewable commit history from natural instructions
Instead of one giant uncommented commit at the end of a session, a developer periodically asks Claude Code to commit logical chunks of work with descriptive messages — producing a commit history a teammate can actually follow later.
Opening a PR without leaving the conversation
After finishing a fix, “create a PR for this change with a summary of what and why” has Claude Code push the branch and open the pull request directly, skipping a separate trip to GitHub's web interface.
Source
- Source video: “Claude Code Explained” — 27 concepts in 27 minutes (YouTube)https://www.youtube.com/watch?v=ZlDnsf_DOzg