Skip to content

Instantly share code, notes, and snippets.

@senthilnayagam
Created April 29, 2015 09:19
Show Gist options
  • Save senthilnayagam/46e817296ab30c640ddd to your computer and use it in GitHub Desktop.
Save senthilnayagam/46e817296ab30c640ddd to your computer and use it in GitHub Desktop.
from git repository, list files when it was last modified, this can be sorted or further processing can be done
git ls-tree -r --name-only HEAD | while read filename; do
echo "$(git log -1 --format="%ad" --date=short -- $filename) $filename"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment