Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to find the oldest files git

This emits // just a "last edit date" for each file, in an ISO format that sorts nicely.

git ls-tree -r --name-only HEAD | while read filename; do   
   echo "$(git log -1 --date=iso --format="%ad |" -- $filename) $filename"
 
PREVIOUS NEXT
Tagged: #find #oldest #files #git
ADD COMMENT
Topic
Name
6+3 =