Created
May 24, 2018 21:10
-
-
Save MarceloCajueiro/425e4cfde552785574279fb7d39089ad to your computer and use it in GitHub Desktop.
Workaround to create a CSV from git log. It replaces ; and " to avoid conflicts with google docs.
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 --no-merges --date=short --pretty=format:'----%h----|||----%an----|||----%ad----|||----%B----' \ | |
| sed 's/"/''/g' \ | |
| sed 's/;/./g' \ | |
| sed 's/----/"/g' \ | |
| sed 's/|||/;/g' \ | |
| sed 's/";"/","/g' > commits.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment