Last active
August 18, 2016 16:19
-
-
Save donato/259d320655ff29de41964346b4a9b762 to your computer and use it in GitHub Desktop.
Alias to list the 5 most recently edited git branches
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
# Alias to list the 5 most recently edited git branches | |
alias gre="git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset);%(color:yellow)%(refname:short)%(color:reset);(%(color:green)%(committerdate:relative)%(color:reset));%(authorname);%(contents:subject)' | column -t -s ';' | tail -5" | |
## Example output | |
# d1d3373 bugfix/graph-segments (3 days ago) Donato Borrello Parameterize graph_segments values | |
# d1d3373 task/ordering (3 days ago) Donato Borrello Parameterize graph_segments values | |
# 3138812 bugfix/group-validate (3 days ago) Donato Borrello Bugfix to validation for group in charts | |
# 4bda519 task/accuracy-checker (19 hours ago) Donato Borrello Add script to wrap accuracy checker | |
# * dc1a251 develop (18 hours ago) Donato Borrello Switch from dev elasticsearch to prod | |
# Inspiration/source: https://gist.github.com/jasonrudolph/1810768 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment