commands.sh

git reset-file

all

Revert a file to `HEAD` or a commit. Part of `git-extras`.

More info →

Examples (2)

Reset a file to `HEAD`

git reset-file path/to/file

Reset a file to a specific commit

git reset-file path/to/file commit_hash
made by @shridhargupta | data from tldr-pages