git file reset to head

Shell
git checkout HEAD -- my-file.txt

Source

Also in Shell: