Skip to content

Instantly share code, notes, and snippets.

@adamthebig
Created March 17, 2016 21:21
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save adamthebig/9d2cf1281797c3f9f958 to your computer and use it in GitHub Desktop.
Save adamthebig/9d2cf1281797c3f9f958 to your computer and use it in GitHub Desktop.
Export commits from a git repo into a pretty spreadsheet (CSV)
git log --pretty=format:'"%h","%an","%aD","%s",' --shortstat --no-merges | paste - - - > log.csv
@mochadwi
Copy link

thanks @adamthebig

@aledc7
Copy link

aledc7 commented Oct 9, 2023

Thank you! very useful...

Here is ahother variant only with the date and text commit:

git log --pretty=format:'"%ad","%s",' --date=short > log.csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment