Search across all documentation pages
8 pages in this section.
The daily-driver commands every developer uses — staging, committing, branching, and inspecting history.
Two strategies for combining branches — merge preserves history as-is, rebase rewrites it for a linear timeline.
A step-by-step playbook for resolving merge or rebase conflicts safely. Run the steps in order -- skipping ahead is how clean working trees get clobbered. Every
Worktrees let you check out multiple branches at the same time, each in its own directory, all sharing one underlying repository. No more git stash dances when
Practical, copy-paste examples for the day-to-day worktree workflow: creating, checking out, merging, fetching, and tearing down. All commands assume a recent G
Manage pull requests, issues, repos, and workflows directly from the terminal with gh.
Power tools for everyday situations — stashing WIP, finding bug-introducing commits, moving commits between branches, and recovering from mistakes.
Set up Git for a productive workflow — identity, aliases, defaults, and .gitignore patterns for Next.js projects.