計算機科学のブログ

ほしい物リスト

Git - Looking Around: Investigating Your Git Repository - branches, log, --oneline

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 5.(Looking Around: Investigating Your Git Repository)、EXERCISE(228/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git log --oneline --all --graph
* 8d670e9 (HEAD -> spicy-version) update recipe name
* 4cca5a7 make it spicy
| * 0065b8a (different-base) cut down salt
| * 549e0da use sour cream
|/  
* 5db2b68 (master) first attempt
%

commit graph

commit id: 8d670e9
message:
update recipe name
commit id: 8d670e9…
commit id: 4cca5a7
message:
update make it spicy
commit id: 4cca5a7…
commit id: 0065b8a
message:
cut down salt
commit id: 0065b8a…
commit id: 549e0da
message:
use sour cream
commit id: 549e0da…
commit id: 5db2b68
message:
first attempt
commit id: 5db2b68…
spicy-vrsion branch
spicy-vrsion branch
different-base branch
different-base branch
master branch
master branch
Text is not SVG - cannot display