git-reset-file

Revert a file to HEAD or a specific commit.

TLDR

Reset a file to HEAD

$ git reset-file [path/to/file]
copy

Reset a file to a specific commit

$ git reset-file [path/to/file] [commit_hash]
copy

Copied to clipboard
Coindodo