Skip to content

Instantly share code, notes, and snippets.

@IanWhalen
Last active March 30, 2020 23:37
Show Gist options
  • Save IanWhalen/f54df16c7a95fc57ed031d91d66d9983 to your computer and use it in GitHub Desktop.
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
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