mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
38 lines
863 B
Groff
38 lines
863 B
Groff
.\" generated with Ronn-NG/v0.10.1
|
|
.\" http://github.com/apjanke/ronn-ng/tree/0.10.1
|
|
.TH "GIT\-RESET\-FILE" "1" "March 2026" "" "Git Extras"
|
|
.SH "NAME"
|
|
\fBgit\-reset\-file\fR \- Reset one file
|
|
.SH "SYNOPSIS"
|
|
\fBgit\-reset\-file\fR <filename> [<commit\-hash>]
|
|
.SH "DESCRIPTION"
|
|
Reset one file to HEAD or certain commit\-hash
|
|
.SH "OPTIONS"
|
|
<filename>
|
|
.P
|
|
The name of the file to reset\.
|
|
.P
|
|
<commit\-hash>
|
|
.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>
|