git reset --lean is not a real command, yet the phrase “Git Reset Lean” is becoming shorthand for cutting away the extras and moving a branch’s state without rebuilding half your history. Git’s actual reset options—--soft, --mixed, --hard, and the lesser used --merge and --keep—each have trade‑offs. But there is a lean way to reset that avoids bloated operations.
A lean Git reset means minimal impact. You point HEAD at the target commit. You skip unnecessary index rewrites when possible. You avoid file system churn. For large repos and CI pipelines, speed and precision matter.
Use git reset --soft <commit> to move HEAD while keeping your index and working tree intact. This is the fastest option when you just need to change your base commit for the next operation. If your local changes should remain staged, this is lean enough.
Use git reset --mixed <commit> (default) to keep working tree changes unstaged but align your index with the target commit. Good for aligning code snapshots without touching the actual files on disk.