Skip to content

Instantly share code, notes, and snippets.

@ragaskar
Created August 5, 2011 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ragaskar/1127469 to your computer and use it in GitHub Desktop.
Save ragaskar/1127469 to your computer and use it in GitHub Desktop.
Show Remote Branch info
#!/bin/sh
for k in `git branch -r|awk '{print $1}'`;do echo `git show --pretty=format:"%Cgreen%ci %Cblue%cr %Cred%cn %Creset" $k|head -n 1`\\t$k;done|sort -r
echo "If you're unable to remove a branch, it may already be gone from the remote. Try git remote prune origin (git remote prune --dry-run origin) to see what remote branch references will be deleted"
@iwz
Copy link

iwz commented May 27, 2014

Rajan, is there an updated or improved version of this floating around somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment