git reset single file

git reset -- path/to/file
git checkout -- path/to/file

Leave a Reply