.\" generated with Ronn-NG/v0.9.1 .\" http://github.com/apjanke/ronn-ng/tree/0.9.1 .TH "GIT\-RESET\-FILE" "1" "October 2020" "" "Git Extras" .SH "NAME" \fBgit\-reset\-file\fR \- Reset one file .SH "SYNOPSIS" \fBgit\-reset\-file\fR [] commit\-hash .SH "DESCRIPTION" Reset one file to HEAD or certain commit\-hash .SH "OPTIONS" .P The name of the file to reset\. .P .P (Optional) Hash of commit to reset the file to\. Defaults to HEAD\. .SH "EXAMPLES" Reset one file to HEAD .IP "" 4 .nf $ git reset\-file \.htaccess .fi .IP "" 0 .P or reset one file to certain commit .IP "" 4 .nf $ git reset\-file \.htaccess dc82b19 .fi .IP "" 0 .SH "AUTHOR" Written by Sasha Khamkov <\fIsanusart@gmail\.com\fR> .SH "REPORTING BUGS" <\fIhttps://github\.com/tj/git\-extras/issues\fR> .SH "SEE ALSO" <\fIhttps://github\.com/tj/git\-extras\fR>