Git で logを見る時に開発中は git log --oneline
でほぼ事足りていたのですが、 色々やるようになって tree 表示 GUI だと遅いのでターミナルでいい感じに表示したくなって設定を追加しました。
Git tree をいい感じに表示するエイリアス
# 今いるブランチのツリーをシンプルに表示 $ git config --global alias.tree 'log --graph --oneline' # 全てのブランチのツリーをいい感じに表示 $ git config --global alias.treeall 'log --graph --all --format="%x09%C(cyan bold)%an%Creset%x09%C(yellow)%h%Creset %C(magenta reverse)%d%Creset %s"'
👇
# 今いるブランチのツリーをシンプルに表示
$ git tree
# 全てのブランチのツリーをいい感じに表示
$ git treeall
いい感じの log がいい感じ表示できるようになりました! 楽!!!
AWESOME ₍ ᐢ. ̫ .ᐢ ₎👌
[参考]