Created
March 17, 2016 21:21
-
-
Save adamthebig/9d2cf1281797c3f9f958 to your computer and use it in GitHub Desktop.
Export commits from a git repo into a pretty spreadsheet (CSV)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git log --pretty=format:'"%h","%an","%aD","%s",' --shortstat --no-merges | paste - - - > log.csv |
Thank you! very useful...
Here is ahother variant only with the date and text commit:
git log --pretty=format:'"%ad","%s",' --date=short > log.csvDoes it also show the commit message descriptions?
This should show commit message itself, the commit message's description, and date only
git log --no-merges --pretty=format:'"%ad","%s","%b"' --date=short > gitLogs.csv
Example:
"2026-01-15","feat: Enhance context agent with dynamic file selection and configuration fetching","Refactor context selection to integrate configuration data, support targeted line range reading, and improve command safety verification.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks @adamthebig