git reset radius is not a standard Git command, but it’s the term many teams use as shorthand for controlling how far back a reset will go. In practice, this means using git reset with a specific commit reference and understanding the scope, or "radius,"of the reset. The radius defines the exact boundary between the code you keep and the code you roll back.
In Git, the main reset modes are:
- soft – moves the HEAD pointer but keeps changes staged.
- mixed – moves HEAD and resets the index, but leaves files intact in the working directory.
- hard – moves HEAD, resets the index, and overwrites files in the working directory.
When engineers talk about a "reset radius,"they mean selecting the number of commits—or even a precise SHA—to determine where HEAD lands after the reset. For example:
git reset --hard HEAD~3
This moves HEAD back three commits. Your radius here is 3. Everything beyond that point remains untouched; everything inside that radius is reverted according to the chosen mode.