Git - Looking Around: Investigating Your Git Repository - commit, message
Head First Git: A Learner’s Guide to Understanding Git from the Inside Out、 Raju Gandhi(著)、 O’Reilly Mediaの Chapter 3.(Looking Around: Investigating Your Git Repository)、EXERCISE(256/715)の解答を求めてみる。
入出力結果(Terminal, Zsh)
% git branch
different-base
master
* spicy-version
% git status
On branch spicy-version
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: saucy.md
% git commit -m 'add punch'
[spicy-version e1ce41a] add punch
1 file changed, 3 insertions(+), 3 deletions(-)
% git status
On branch spicy-version
nothing to commit, working tree clean
%