Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MarceloCajueiro/425e4cfde552785574279fb7d39089ad to your computer and use it in GitHub Desktop.
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.
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