Revert a file to HEAD or a specific commit.
Reset a file to HEAD
Reset a file to a specific commit
git-reset-file [<filename>] commit-hash
Reset one file to HEAD or certain commit-hash
The name of the file to reset.
(Optional) Hash of commit to reset the file to. Defaults to HEAD.
Reset one file to HEAD
$ git reset-file .htaccess
or reset one file to certain commit
$ git reset-file .htaccess dc82b19
Written by Sasha Khamkov <email@example.com>