Created
August 5, 2011 12:46
-
-
Save ragaskar/1127469 to your computer and use it in GitHub Desktop.
Show Remote Branch info
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
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Rajan, is there an updated or improved version of this floating around somewhere?