The commit history was clean until one change broke everything. You need to move fast. You run git reset and shift left.
This is more than undoing a bad commit. Git reset shift left is about control. It lets you move HEAD to an earlier state, rewrite history, and fix the mess without leaving traces in the main branch.
git reset works in three primary modes:
- soft: moves HEAD, keeps changes staged.
- mixed: moves HEAD, keeps changes in working directory, unstaged.
- hard: moves HEAD and clears changes.
Shifting left means acting early—bringing Git’s reset power closer to the start of your workflow. Instead of chasing bugs late in CI, you catch and remove them locally, before merging, before reviewers waste time. A left shift in reset strategy keeps the codebase lean and stable.