File: git-reset-file.md

package info (click to toggle)
git-extras 7.3.0-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 1,988 kB
  • sloc: sh: 4,235; python: 634; makefile: 146
file content (42 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 &lt;<sanusart@gmail.com>&gt;

## REPORTING BUGS

&lt;<https://github.com/tj/git-extras/issues>&gt;

## SEE ALSO

&lt;<https://github.com/tj/git-extras>&gt;