Last active
July 30, 2024 13:46
-
-
Save ghinda/722d0ebebbee7183fea2 to your computer and use it in GitHub Desktop.
git csv export of commits in the last month
This file contains 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 --since='last month' --pretty=format:'%h;%an;%ad;%s' --author='Ionut Colceriu' > ~/log.csv |
Very useful, thanks!
add "--all" to get all commits from all branches
Thank you... you help me to create my Dataset...
Thank you!
If the text got no commas (not guaranteed) using , as separator makes it easier to parse CSV
--date=short
removes precision but makes easier to parse (Y-M-D)
git log --since='last year' --date=short --pretty=format:'%h,%an,%ad,%s' > ~/log.csv
Thanks a Lot!!!
How to add multiple authors?
Thanks a Lot!!! How to add multiple authors?
Probably you are looking for this...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the file fails to open in Excel, add the following on a new line at the top of the file:
sep=;