# git reset-file > Revert a file to HEAD or a commit. > Part of `git-extras`. > More information: . - 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}}`