Skip to content

Instantly share code, notes, and snippets.

@xav
Created June 14, 2023 08:13
Show Gist options
  • Save xav/6b404ce96142dc218891d80873ad1af0 to your computer and use it in GitHub Desktop.
Save xav/6b404ce96142dc218891d80873ad1af0 to your computer and use it in GitHub Desktop.
List branch activity for git repository
for i in `git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5 |grep -v ^master$ |grep -v ^main$ |grep -v ^HEAD$`; do echo "$i;`git log -1 --pretty=format:\"%an (%ae);%at\" origin/$i`"; done |sort > branches.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment