Git - GitHub - Collaborating with Git - Part Ⅰ: Remote Work - merge, 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)、SHARPEN YOUR PENCIL(387/680)の解答を求めてみる。
入出力結果(Terminal, Zsh)
% cd working-with-remotes
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 branch
feat-a
* master
working-with-remotes % git merge feat-a
Merge made by the 'ort' strategy.
feat-a-01.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 feat-a-01.md
working-with-remotes % git log --oneline --all --graph
* fc3396b (HEAD -> master) Merge branch 'feat-a'
|\
| * 8ccb875 (feat-a) my first commit on feat-a
* | 6780b56 my second commit on master
|/
* 873304c (origin/master, origin/HEAD) my first commit on master
* 5aefc0d add master-01 file
* f9fd4aa add README
working-with-remotes % git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 8 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 821 bytes | 821.00 KiB/s, done.
Total 8 (delta 2), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (2/2), done.
To https://github.com/kamimura/working-with-remotes.git
873304c..fc3396b master -> master
working-with-remotes %