-
-
Save ariyuan/34e60a5560c0e7640eea34eb832de57e 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for i in
git branch -a |grep remotes |awk '{print $1}' | cut -d"/" -f 3,4,5,6,7,8,9 |grep -v ^master$ |grep -v ^HEAD$; do echo "git log -1 --pretty='format:%an (%ae) | %cs | %s' --date=human origin/$i|$i"; done |sort > branches.csv