A correction starts with a choice: keep the recorded history and add a correction, or move a private branch to a different point? For an uncommitted edit, neither is necessary. This chapter assumes familiarity with commits, branches, staging and merging.
- Locate the change — inspect and choose a safe direction.
- Correct an uncommitted file — unstage or intentionally discard a file edit.
- Reverse a recorded change — add a correction without rewriting shared history.
- Move a private branch — compare reset modes and their consequences.
- Find a previous tip — use a local reflog, with limits.
- Replay private work — rebase, conflicts and shared history.
Examples describe local operations in a disposable repository, not a production project. Before any potentially destructive operation, preserve work you need independently and inspect the destination. A backup branch saves committed history only.
Continue to the final assessment.