Skip to content

Instantly share code, notes, and snippets.

@lukasschwab
Created August 20, 2024 07:46
Show Gist options
  • Select an option

  • Save lukasschwab/ecfbfb57ed1275c339e197aeec254a2e to your computer and use it in GitHub Desktop.

Select an option

Save lukasschwab/ecfbfb57ed1275c339e197aeec254a2e to your computer and use it in GitHub Desktop.
Bodge: git log stats to CSV
git log --author="schwab" --shortstat | grep -E '\s\d+ file' | sed 's/[^0-9 ]*//g' | awk '{$1=$1};1' | sed 's/ \{1,\}/,/g' | sed '1s;^;files,added,removed\n;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment