Sometimes git suggests git rm --cached to unstage a file, sometimes git reset HEAD file. When should I use which?
git rm --cached
git reset HEAD file
EDIT:
D:\
It would seem to me that git rm --cached removes the file from the index without removing it from the directory where a plain git rm would do both, just as an OS rm would remove the file from the directory without removing its versioning.
git rm
rm