1GIT-RESET-FILE(1) Git Extras GIT-RESET-FILE(1)
2
3
4
6 git-reset-file - Reset one file
7
9 git-reset-file [<filename>] commit-hash
10
12 Reset one file to HEAD or certain commit-hash
13
15 <filename>
16
17 The name of the file to reset.
18
19 <commit-hash>
20
21 (Optional) Hash of commit to reset the file to. Defaults to HEAD.
22
24 Reset one file to HEAD
25
26
27
28 $ git reset-file .htaccess
29
30
31
32 or reset one file to certain commit
33
34
35
36 $ git reset-file .htaccess dc82b19
37
38
39
41 Written by Sasha Khamkov <sanusart@gmail.com>
42
44 <https://github.com/tj/git-extras/issues>
45
47 <https://github.com/tj/git-extras>
48
49
50
51 October 2017 GIT-RESET-FILE(1)