GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
GIT-UTIMES(1) Git Extras GIT-UTIMES(1)

git-utimes - Change files modification time to their last commit date

git-utimes [--newer]

Change files modification time to their last commit date. Does not touch files that are in the working tree or index.

--newer

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.

Update all files' modification time to their last commit date, except those in working tree or index:

$ git utimes

As above, but preserve original modification time of files that were committed from local repo:

$ git utimes --newer

Written by Vitaly Chikunov <vt@altlinux.org>, inspired by Stackexchange comments. Updated by Bill Wood <wpwoodjr@gmail.com> to add --newer flag and ignore files in the working tree or index.

<https://github.com/tj/git-extras/issues>

<https://github.com/tj/git-extras>

May 2022

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.