Thursday, March 14, 2013

How do I generate a git commit log for the last month, and export it as CSV? - Stack Overflow

How do I generate a git commit log for the last month, and export it as CSV? - Stack Overflow


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.
following will give you the full history
git log --pretty=format:'%h,%an,%ar,%s' > log.csv

No comments: