計算機科学のブログ

ほしい物リスト

Git - GitHub - Collaborating with Git - Part Ⅱ: Go, Team Go! - fetch command

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

入出力結果(Terminal, Zsh)

% cd addisons-clone 
% git branch -a
* addison-add-faqs
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/addison-add-faqs
  remotes/origin/master
% git fetch
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (3/3), 364 bytes | 121.00 KiB/s, done.
From https://github.com/kamimura/hawtdawg-all-ears
 * [new branch]      sangita-add-profile -> origin/sangita-add-profile
% git branch -a
* addison-add-faqs
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/addison-add-faqs
  remotes/origin/master
  remotes/origin/sangita-add-profile
% cd ../sangitas-clone 
% git branch -a
  master
* sangita-add-profile
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/sangita-add-profile
% git fetch
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 1), reused 2 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (3/3), 495 bytes | 495.00 KiB/s, done.
From https://github.com/kamimura/hawtdawg-all-ears
 * [new branch]      addison-add-faqs -> origin/addison-add-faqs
% git branch -a
  master
* sangita-add-profile
  remotes/origin/HEAD -> origin/master
  remotes/origin/addison-add-faqs
  remotes/origin/master
  remotes/origin/sangita-add-profile
%