How do I generate a git commit log for the last month, and export it as CSV?
csv, git, github
Solution
You can use the `--since` and `--pretty` option of `git log`, for instance:
git log --since="last month" --pretty=format:'%h,%an,%ar,%s' > log.csv
Refer to the PRETTY FORMATS section of the Git log man page for more options.
Problem
Is there a way to generate a git commit log for the last month, and export it as a CSV file? I'm looking for something I can run from the command line, or a 3rd party app. I'd like the following columns: author, date of commit, subject, file edited and hash.