Changes between Version 3 and Version 4 of GitTricks
- Timestamp:
- Sep 24, 2010 10:17:26 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitTricks
v3 v4 29 29 git checkout HEAD <file> 30 30 }}} 31 32 == Set file modifcation times to last commit == 33 34 Here'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 40 No warranty. As is.