$ git config --global alias.tree \
'log --date=iso --graph --pretty="format:%C(yellow)%<(7)%h%C(reset)%x09%ad%C(reset) %C(blue)%<(15)%an%C(reset) %C(bold yellow)%d%C(reset) %C(green)%s%C(reset)"' \
&& git config --global alias.tree-all \
'tree --exclude refs/stash --all'
Use it like git log
but write:
$ git tree
or, to view all branches:
$ git tree-all
It takes the same arguments / options as git log
does.
(In fact, it is nothing more than a formatted git log
).