計算機科学のブログ

ほしい物リスト

Git - Undoing: Fixing Your Mistakes - diff command, flag, cached

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(291/715)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git status
On branch master
nothing to commit, working tree clean
% git branch
* master
% git diff --cached 
%