logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       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.

Description

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

Examples

       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

Name

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

Options

       --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.

Reporting Bugs

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

See Also

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

                                                  October 2024                                     GIT-UTIMES(1)

Synopsis

git-utimes [--newer]

See Also