Changes between Version 3 and Version 4 of GitTricks


Ignore:
Timestamp:
Sep 24, 2010 10:17:26 AM (14 years ago)
Author:
faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitTricks

    v3 v4  
    2929git checkout HEAD <file>
    3030}}}
     31
     32== Set file modifcation times to last commit ==
     33
     34Here's a little script to walk through {{{git log }}} output, find the commit times for each file and call {{{touch}}} on them.  Call it from the root of the checked out repository.  {{{git}}} and {{{touch}}} need to be in your path.  I was able to set times on the {{{abac}}} git repository by:
     35{{{
     36$ cd abac
     37$ python ../git-touch.py
     38}}}
     39
     40No warranty.  As is.