-
-
Save fazni/f5759fb6b3098026a7d404bc0e5af574 to your computer and use it in GitHub Desktop.
Export to csv format the list of remote branches and their "owners"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5 |grep -v ^master$ |grep -v ^HEAD$`; do echo "`git log -1 --pretty=format:\"%an (%ae)\" origin/$i`|$i"; done |sort > /tmp/branches.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment