SyntaxFix
Write A Post
Hire A Developer
Questions
You want:
Affect to a single file
Remove file from staging area
Not remove single file from index
Don't undo the change itself
and the solution is
git reset HEAD file_name.ext
or
git reset HEAD path/to/file/file_name.ext