計算機科学のブログ

ほしい物リスト

Git - Beginning Git: Get Going with Git - status command

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 1.(Beginning Git: Get Going with Git)、TEST DRIVE(128/715)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	Checklist.md

nothing added to commit but untracked files present (use "git add" to track)
% git add Checklist.md 
% git commit -m 'my second commit'
[master 5267367] my second commit
 1 file changed, 5 insertions(+)
 create mode 100644 Checklist.md
% git status
On branch master
nothing to commit, working tree clean
%