mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
34 lines
1.2 KiB
Groff
34 lines
1.2 KiB
Groff
.\" generated with Ronn-NG/v0.9.1
|
|
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
|
.TH "GIT\-UTIMES" "1" "May 2022" "" "Git Extras"
|
|
.SH "NAME"
|
|
\fBgit\-utimes\fR \- Change files modification time to their last commit date
|
|
.SH "SYNOPSIS"
|
|
\fBgit\-utimes\fR [\-\-newer]
|
|
.SH "DESCRIPTION"
|
|
Change files modification time to their last commit date\. Does not touch files that are in the working tree or index\.
|
|
.SH "OPTIONS"
|
|
\-\-newer
|
|
.P
|
|
Preserves the original modification time of files that were committed from the local repo, by only touching files that are newer than their last commit date\.
|
|
.SH "EXAMPLES"
|
|
Update all files' modification time to their last commit date, except those in working tree or index:
|
|
.IP "" 4
|
|
.nf
|
|
$ git utimes
|
|
.fi
|
|
.IP "" 0
|
|
.P
|
|
As above, but preserve original modification time of files that were committed from local repo:
|
|
.IP "" 4
|
|
.nf
|
|
$ git utimes \-\-newer
|
|
.fi
|
|
.IP "" 0
|
|
.SH "AUTHOR"
|
|
Written by Vitaly Chikunov <\fIvt@altlinux\.org\fR>, inspired by Stackexchange comments\. Updated by Bill Wood <\fIwpwoodjr@gmail\.com\fR> to add \fB\-\-newer\fR flag and ignore files in the working tree or index\.
|
|
.SH "REPORTING BUGS"
|
|
<\fIhttps://github\.com/tj/git\-extras/issues\fR>
|
|
.SH "SEE ALSO"
|
|
<\fIhttps://github\.com/tj/git\-extras\fR>
|