reset file with head code example
Example 1: git reset one file
git checkout HEAD -- my-file.txt
Example 2: git file reset to head
git checkout HEAD -- my-file.txt
git checkout HEAD -- my-file.txt
git checkout HEAD -- my-file.txt