1GIT-UTIMES(1) Git Extras GIT-UTIMES(1)
2
3
4
6 git-utimes - Change files modification time to their last commit date
7
9 git-utimes [--newer]
10
12 Change files modification time to their last commit date. Does not
13 touch files that are in the working tree or index.
14
16 --newer
17
18 Preserves the original modification time of files that were committed
19 from the local repo, by only touching files that are newer than their
20 last commit date.
21
23 Update all files' modification time to their last commit date, except
24 those in working tree or index:
25
26
27 $ git utimes
28
29
30
31 As above, but preserve original modification time of files that were
32 committed from local repo:
33
34
35 $ git utimes --newer
36
37
38
40 Written by Vitaly Chikunov <vt@altlinux.org>, inspired by Stackexchange
41 comments. Updated by Bill Wood <wpwoodjr@gmail.com> to add --newer flag
42 and ignore files in the working tree or index.
43
45 <https://github.com/tj/git-extras/issues>
46
48 <https://github.com/tj/git-extras>
49
50
51
52 May 2022 GIT-UTIMES(1)