Gitを使うとき、私はiTermを使っていますが、コミット履歴をツリー構造で見たい時ってありますよね。
git graphでそれを実現できるらしい、と気づいてコマンド打ってみましたが、
「そんなコマンドはない」
と怒られてしまいました。
$ git graph git: 'graph' is not a git command. See 'git --help'. Did you mean one of these? branch grep
えーでも、使っている人のブログ読んだし、どうやったら使えるんだろう?とググッたら、出ました。
これを$HOME/.gitconfig か、/etc/gitconfig に追加しておくといいらしい。
↓ ↓ ↓
[alias] graph = log --graph --date-order -C -M --pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\" --all --date=short
あとは、
$ git graph
とコマンド打てば
ほらこの通り!