Skip to content

Instantly share code, notes, and snippets.

@jrause
jrause / branch-commit-report
Created April 22, 2015 22:29
Generate report of all commits across all branches in a repository
for REMOTE_BRANCH in $(git branch -r | grep origin); do echo "$REMOTE_BRANCH"; git log $REMOTE_BRANCH --format='%ci|%an|%s' | grep -F -x -v -f ../"${PWD##*/}".csv >> ../"${PWD##*/}".csv; done