This is the command git-reset-file that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
git-reset-file - Reset one file
SYNOPSIS
git-reset-file [<filename>] commit-hash
DESCRIPTION
Reset one file to HEAD or certain commit-hash
OPTIONS
<filename>
The name of the file to reset.
<commit-hash>
(Optional) Hash of commit to reset the file to. Defaults to HEAD.
EXAMPLES
Reset one file to HEAD
$ git reset-file .htaccess
or reset one file to certain commit
$ git reset-file .htaccess dc82b19
Use git-reset-file online using onworks.net services