Skip to content

Instantly share code, notes, and snippets.

@nailton
Forked from pwenzel/git-log-to-tsv.sh
Last active August 29, 2015 14:20
Show Gist options
  • Save nailton/a3d9bb3353ee325bc0c3 to your computer and use it in GitHub Desktop.
Save nailton/a3d9bb3353ee325bc0c3 to your computer and use it in GitHub Desktop.
# 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
@nailton
Copy link
Author

nailton commented May 11, 2015

and if you had to do it for severals repo :

for each repo

git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > ~/commits.local-<REPO_NAME>.tsv.txt

then to have them in a single file :

cat ~/commits.local-* > ~/all-repos-commits.tsv.txt

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