Skip to content

Instantly share code, notes, and snippets.

@DavidBrower
Forked from pwenzel/git-log-to-tsv.sh
Created March 13, 2020 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidBrower/6cc238f54e5de5db572eb15e04c0869a to your computer and use it in GitHub Desktop.
Save DavidBrower/6cc238f54e5de5db572eb15e04c0869a to your computer and use it in GitHub Desktop.
Git Log to Tab-Delimited CSV File
# Local Dates:
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt
# ISO Dates:
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt
@DavidBrower
Copy link
Author

Or for csv (which opens correctly in Excel): git log --date=iso --pretty=format:'"%h","%an","%ad","%s"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment