計算機科学のブログ

ほしい物リスト

Git - Undoing: Fixing Your Mistakes - log, oneline, graph

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 4.(Undoing: Fixing Your Mistakes)、SHARPEN YOUR PENCIL(5/130)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git log --oneline --all --graph 
* 8d704f8 (HEAD -> master) first cut at invitation card
* 6e16680 initial set of guests and gift registry
% git branch 
* master
%

commit graph

commit id: 8d704f8
second commit
message:

first cut at invitation card


commit id: 8d704f8…
commit id: 6e16680
first commit
message:

initial set of guests and gift registry

commit id: 6e16680…
Text is not SVG - cannot display