Skip to content

Instantly share code, notes, and snippets.

@hetang
Created April 10, 2018 06:04
Show Gist options
  • Save hetang/09897881079943e98df714b4041569a2 to your computer and use it in GitHub Desktop.
Save hetang/09897881079943e98df714b4041569a2 to your computer and use it in GitHub Desktop.
Get List of Git Branches & its owner Info.
git fetch --prune
for branch in $(git branch -r --no-merged origin/staging | sed s/origin\\///g | grep -v HEAD); do
printf "%-32s %s\n" "$(git show -s --format=%an origin/$branch)" $branch;
done | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment