GitHub - 1in1/git-xtree: A _much_ tidier `git log --graph`
source link: https://github.com/1in1/git-xtree
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
git-xtree
Tiny script of mine to pretty-print the history tree, derived from some stuff in this stackoverflow question. Pulling into a separate repo to share.
To install, drop git-xtree
in your PATH
and add
[alias]
log-with-markers = log --all --graph --decorate=short --date-order --color --format=format:'%C(bold blue)%h%C(reset)§%C(dim normal)(%cr)%C(reset)§%C(auto)%d%C(reset)§§\n§§§ %C(normal)%an%C(reset)%C(dim normal): %s%C(reset)'
to your gitconfig
. Apologies for using zsh
solely for colors
:)
Example (calling git xtree
from repo root):
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK