Skip to content

Instantly share code, notes, and snippets.

@anees042
Forked from jrause/branch-commit-report
Created July 19, 2023 11:13
Show Gist options
  • Select an option

  • Save anees042/4b2cdb9bb919933bcf10d91461706ffe to your computer and use it in GitHub Desktop.

Select an option

Save anees042/4b2cdb9bb919933bcf10d91461706ffe to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment