Skip to content

Instantly share code, notes, and snippets.

@unicornrainbow
Created January 3, 2012 10:40
Show Gist options
  • Save unicornrainbow/1554417 to your computer and use it in GitHub Desktop.
Save unicornrainbow/1554417 to your computer and use it in GitHub Desktop.
A zsh shell alias that acts something like github's branches page.
alias all='git for-each-ref --count=400 --sort=-committerdate refs/heads/ --format='"'"'printf "%%-40s %%4d behind\t%%4d ahead\t%%-20s\t%%30s\n" "$(echo %(refname) | cut -d / -f 3-)" "$(echo $(git log %(objectname)..head --oneline | wc -l))" "$(git log head..%(objectname) --oneline | wc -l)" "%(authorname)" "%(authordate)"'"'"' | $SHELL | less'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment