Skip to content

Instantly share code, notes, and snippets.

@amiel
Forked from pjhyett/git-branch.sh
Created June 4, 2009 00:25
Show Gist options
  • Save amiel/123355 to your computer and use it in GitHub Desktop.
Save amiel/123355 to your computer and use it in GitHub Desktop.
alias gb='for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cblue%cr%Creset" $k|head -n 1`\\t$k;done'
# Output
# ------
# ~/Development/github(master)$ gb
# 4 weeks ago config-gem
# 9 days ago dropdown
# 5 weeks ago faucet
# 3 weeks ago health
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment