git revert
Learn git revert through shared-history reasoning, inverse commits, conflict recovery, no-commit workflows, and the special risks of reverting merges.
Open command referenceEach reference explains what the command changes, how to reason about it, common failure modes, safe recovery, and realistic examples.
Learn git revert through shared-history reasoning, inverse commits, conflict recovery, no-commit workflows, and the special risks of reverting merges.
Open command referenceLearn git rebase through commit-graph reasoning, safe examples, conflict recovery, interactive cleanup, and practical guidance on when rebasing is the wrong choice.
Open command referenceLearn git merge through commit-graph reasoning, fast-forward behavior, merge commits, conflict recovery, and safe collaboration scenarios.
Open command referenceLearn git restore through working-tree and index state reasoning, safe unstaging, source selection, patch mode, and deliberate recovery from local file mistakes.
Open command referenceLearn git reset through HEAD, index, and working-tree reasoning, safe soft/mixed/hard examples, unstaging, recovery, and clear reset-vs-restore-vs-revert decisions.
Open command referenceLearn git stash through working-tree and index state reasoning, selective stashing, safe restoration, conflict recovery, and practical branch workflows.
Open command referenceLearn git cherry-pick through commit selection, backport reasoning, conflict recovery, merge-parent choices, and safe verification of copied changes.
Open command referenceLearn git reflog as local ref-movement history for recovering commits after resets, rebases, branch moves, and other history-changing operations.
Open command reference