Skip to content

Instantly share code, notes, and snippets.

@cflynn07
Created April 23, 2020 07:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cflynn07/d04efff76d11ea03b560a1d0201df651 to your computer and use it in GitHub Desktop.
# sort by date added
foo () {
while read f
do
echo "$(git log --format="%at" --reverse "$f" | head -n1) --> $f"
done | sort -n
}
find ./til-autoformat-readme | foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment