Learn how to undo various changes in Git, such as reverting commits, fixing commit messages, undoing local changes, resetting changes, redoing changes, branching, and more.
Table of contents
Undo a “public” changeFix the last commit messageUndo “local” changesReset “local” changesRedo after undo “local”Once more, with branchingBranch in time saves nineMass undo/redoFix an earlier commitStop tracking a tracked fileSort: