Skip to content

Instantly share code, notes, and snippets.

@cflynn07
Created April 23, 2020 07:54
Show Gist options
  • Save cflynn07/d04efff76d11ea03b560a1d0201df651 to your computer and use it in GitHub Desktop.
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