4 ms·
Here's one I like that shows all the branches sorted by date, most recent commit hash, branch name, time ago, and user who committed, in color. alias git.bra
by gre 2y ago
Here's one I like that shows all the branches sorted by date, most recent commit hash, branch name, time ago, and user who committed, in color.
alias git.branches="git for-each-ref --color=always --sort=-committerdate refs/heads refs/remotes --format='%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset)) %(authorname)'"
Bonus one for contributing to open source projects outside of work hours:
alias git-future-commit='git commit --date "$(date -v +7H)"'\n