In brief
git reset has different forms affecting HEAD, the index and working files. --soft preserves the index and working contents, while stronger modes have different effects.
Useful to know
git reset has different forms affecting HEAD, the index and working files. --soft preserves the index and working contents, while stronger modes have different effects. [1]
Advice to “run reset” is therefore incomplete. Identify the target revision and which uncommitted contents must survive. Distinguish reorganizing local staging from reversing a shared change with a new commit.
Sources
For further detail and to check the information: