Skip to content

Instantly share code, notes, and snippets.

@DanOliverBC
Created November 12, 2019 16:28
Show Gist options
  • Save DanOliverBC/b0ef72d114a71649eaf00d2d377ddaad to your computer and use it in GitHub Desktop.
Save DanOliverBC/b0ef72d114a71649eaf00d2d377ddaad to your computer and use it in GitHub Desktop.
Gets git log commits for a time period and outputs them to a csv
echo "commit id,author,date,comment,changed files,lines added,lines deleted" > res.csv 
git log --since='2019-01-01' --date=local --all --pretty="%x40%h%x2C%an%x2C%ad%x2C%x22%s%x22%x2C" --shortstat | tr "\n" " " | tr "@" "\n" >> res.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment