Skip to content

Instantly share code, notes, and snippets.

@datYori
Created April 16, 2024 14:46
Show Gist options
  • Save datYori/f2c3367458381452f35c9ac45c909274 to your computer and use it in GitHub Desktop.
Save datYori/f2c3367458381452f35c9ac45c909274 to your computer and use it in GitHub Desktop.
first add commit for a file
WIDTH=35 ; for filename in * ; do created_date=$(git log --follow --format=%ad --date default $filename | tail -1); printf "%-${WIDTH}s | %s \n" "$created_date" $filename ; done | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment