git reset file name code example
Example 1: git reset head
sudo git reset --hard Head
Example 2: git reset one file
git checkout HEAD -- my-file.txt
Example 3: git file reset to head
git checkout HEAD -- my-file.txt
sudo git reset --hard Head
git checkout HEAD -- my-file.txt
git checkout HEAD -- my-file.txt