mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Although Github reserves the 'visionmedia' user space(a visit to there will be redirected to 'tj'), it's better to rename the links from visionmedia/git-extras to tj/git-extras
43 lines
691 B
Markdown
43 lines
691 B
Markdown
git-reset-file(1) -- 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
|
|
|
|
## AUTHOR
|
|
|
|
Written by Sasha Khamkov <<sanusart@gmail.com>>
|
|
|
|
## REPORTING BUGS
|
|
|
|
<<https://github.com/tj/git-extras/issues>>
|
|
|
|
## SEE ALSO
|
|
|
|
<<https://github.com/tj/git-extras>>
|