4 ms·
About a year ago, I discovered it was very helpful for me to have git branches ordered by "recently modified first": From my `~/.gitconfig`: [alias]
by tasuki 6y ago
About a year ago, I discovered it was very helpful for me to have git branches ordered by "recently modified first":
From my `~/.gitconfig`:
[alias]
brt = "!git for-each-ref refs/heads --color=always --sort -committerdate --format='%(HEAD)%(color:reset);%(color:yellow)%(refname:short)%(color:reset);%(contents:subject);%(color:green)(%(committerdate:relative))%(color:blue);<%(authorname)>' | column -t -s ';'"
I always spent a lot of time being confused about branches, and never realised how easy the solution was.
- simias 6y agoOh that's a great idea, I'd definitely stealing that, thanks!
- nicoburns 6y agoAmazing. This should be the default!
- rurban 6y agoI prefer the version without column brt = "!git for-each-ref refs/heads --color=always --sort -committerdate --format='%(HEAD)%(color:reset) %(color:yellow)%(refname:short)%(color:reset) %(contents:subject) %(color:green)(%(committerdate:relative))%(color:blue) <%(authorname)>'"