計算機科学のブログ

ほしい物リスト

Git - GitHub - Collaborating with Git - Part Ⅰ: Remote Work - clone command

Head First Git: A Learner’s Guide to Understanding Git from the Inside OutRaju Gandhi(著)、 O’Reilly Mediaの Chapter 5.(Collaborating with Git - Part Ⅰ: Remote Work)、EXERCISE(373/715)の解答を求めてみる。

入出力結果(Terminal, Zsh)

% git clone https://github.com/kamimura/working-with-remotes.git
Cloning into 'working-with-remotes'...
remote: Enumerating objects: 6, done.
remote: Total 6 (delta 0), reused 0 (delta 0), pack-reused 6 (from 1)
Receiving objects: 100% (6/6), done.
% cd working-with-remotes 
% ls
README.md	master-01.md
% git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
% git branch
* master
% git log --oneline --all --graph
* 5aefc0d (HEAD -> master, origin/master, origin/HEAD) add master-01 file
* f9fd4aa add README
%