Last active
March 30, 2020 23:37
-
-
Save IanWhalen/f54df16c7a95fc57ed031d91d66d9983 to your computer and use it in GitHub Desktop.
For a given git repo, list the files in reverse order of recently touched
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read file; do echo $(git log --pretty=format:%ai -n 1 --date=raw -- $file) $file; done < <(git ls-tree -r --name-only HEAD) | sort -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment