3 ms·
I stole these from stackoverflow some time ago. Shows the branches with a bit more useful information [alias] # show a list of local git branches so
by chrisan 3y ago
I stole these from stackoverflow some time ago. Shows the branches with a bit more useful information
[alias]
# show a list of local git branches sorted by the commit date
branches = "for-each-ref --sort=-committerdate refs/heads --format='%(authordate:short) %(color:yellow)%(objectname:short) %(color:green)%(refname:short)%(color:reset) (%(color:cyan)%(committerdate:relative)%(color:reset)) %(authorname)'"
# show a list of local and remote git branches sorted by the commit date
branches-remote = "for-each-ref --sort=-committerdate refs/heads refs/remotes --format='%(authordate:short) %(color:yellow)%(objectname:short) %(color:green)%(refname:short)%(color:reset) (%(color:cyan)%(committerdate:relative)%(color:reset)) %(authorname)'"