git reset HEAD fileToUnstage.txt
Unstages the file without changing the file contents. It will still be seen as modified, but not staged for commit.
Note: this is an alternative to the "git restore" command, which was introduced in Git version 2.23.0.