Git - GitHub - Collaborating with Git - Part Ⅰ: Remote Work - push
Head First Git: A Learner’s Guide to Understanding Git from the Inside Out、 Raju Gandhi(著)、 O’Reilly Mediaの Chapter 5.(Collaborating with Git - Part Ⅰ: Remote Work)、EXERCISE(371/680)の解答を求めてみる。
入出力結果(Terminal, Zsh)
% cd working-with-remotes
working-with-remotes % git branch
* master
working-with-remotes % git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
working-with-remotes % git log --oneline --all --graph
* 873304c (HEAD -> master) my first commit on master
* 5aefc0d (origin/master, origin/HEAD) add master-01 file
* f9fd4aa add README
working-with-remotes % git config push.default
working-with-remotes % git config --global push.default simple
working-with-remotes % git config push.default
simple
working-with-remotes % git push
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 410 bytes | 410.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/kamimura/working-with-remotes.git
5aefc0d..873304c master -> master
working-with-remotes %