The Git rebase manpages are the most direct source of truth for how rebase works. They explain every flag, every optional behavior, without the drift found in random blog posts. Run man git-rebase in your terminal and you see the structure: synopsis, description, examples, and configuration details. It outlines how rebase moves commits to a new base branch, how it can be interactive, and how conflicts must be resolved before continuing.
Key sections in the Git rebase manpages include:
- Synopsis: Command forms like
git rebase [options] [branch]. - Description: Distinction between regular and interactive rebase.
- Options: Flags such as
--interactive,--committer-date-is-author-date,--autosquash, and--onto. - Examples: Practical command chains for moving changes, dropping commits, or squashing history.
- Configuration: How
rebase.autosquashorpull.rebaseinfluence behavior.
Interactive mode (git rebase -i) is the most used feature for cleaning up history. The manpages clarify command keywords inside the todo list: pick, reword, edit, squash, fixup, and drop. They describe how each modifies the commit sequence. The documentation makes it clear when to pause, when git rebase --continue is required, and how git rebase --abort restores the original state.