Created
August 26, 2015 11:06
-
-
Save luisbosque/5513fa88b5087434089d to your computer and use it in GitHub Desktop.
Export to csv format the list of remote branches and their "owners"
This file contains 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 |
Getting exception like below, Any help is appreciated
Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'
Try add more column number to the command:
cut -d"/" -f 3,4,5,6,7,8
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting exception like below, Any help is appreciated
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'