計算機科学のブログ

ほしい物リスト

Git - GitHub - Collaborating with Git - Ⅱ: Go, Team, Go! - pull

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 6.(Collaborating with Git - Ⅱ: Go, Team, Go!)、EXERCISE(442/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% cd sangitas-clone 
% git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
% git branch
* master
% git pull
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 3 (delta 0), reused 1 (delta 0), pack-reused 2 (from 1)
Unpacking objects: 100% (3/3), 509 bytes | 254.00 KiB/s, done.
From https://github.com/kamimura/hawtdawg-all-ears
   32b1d92..b278f04  master     -> origin/master
Updating 32b1d92..b278f04
Fast-forward
 FAQ.md | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 FAQ.md
% git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
% git log --oneline --all --graph
* b278f04 (HEAD -> master, origin/master, origin/HEAD) addison's first commit
* 32b1d92 add README
% cd ..
kamimura@kamimuras-MacBook ch6 % cd sangitas-clone 
% code ../output.txt 
%