計算機科学のブログ

ほしい物リスト

Git - GitHub - Collaborating with Git - Ⅱ: Go, Team, Go! - branch, fetch, remote

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!)、SHARPeN YOUR PENCIL(462/680)の解答を求めてみる。

入出力結果(Terminal, Zsh)

addisons

% cd addisons-clone 
addisons-clone % git branch --all
* addison-add-faqs
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/addison-add-faqs
  remotes/origin/master
addisons-clone % git fetch
remote: Enumerating objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 3 (from 2)
Unpacking objects: 100% (3/3), 365 bytes | 182.00 KiB/s, done.
From https://github.com/kamimura/hawtdawg-all-ears
 * [new branch]      sangita-add-profile -> origin/sangita-add-profile
addisons-clone % 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
addisons-clone %

sangitas

% cd sangitas-clone 
sangitas-clone % git branch --all
  master
* sangita-add-profile
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/origin/sangita-add-profile
sangitas-clone % git fetch
remote: Enumerating objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 3 (from 2)
Unpacking objects: 100% (3/3), 674 bytes | 337.00 KiB/s, done.
From https://github.com/kamimura/hawtdawg-all-ears
 * [new branch]      addison-add-faqs -> origin/addison-add-faqs
sangitas-clone % 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
sangitas-clone %