Skip to content

Instantly share code, notes, and snippets.

@dubilla
Created March 31, 2015 20:47
Show Gist options
  • Save dubilla/4c98e30ea6619533a338 to your computer and use it in GitHub Desktop.
Save dubilla/4c98e30ea6619533a338 to your computer and use it in GitHub Desktop.
Git Branches Command
alias branches="git for-each-ref --sort=-committerdate refs/heads/ --format='%1B[0;32m%(authorname)%09%1B[0;36m(%(committerdate:relative))%09%1B[0;33m%(refname:short)%09%1B[m% (subject)' --count 10 | tail -r | column -t -s $'\t'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment