Learn or Die

生涯勉強。Macです。

git mergeのやり方

前提

マージ先: master
マージ元: new-feature

方法

#masterブランチに切り替える
$ git checkout master
#差分を確認。git diff <ベースブランチ> <作業ブランチ>
$ git diff master new-feature
#new-featureブランチをmasterブランチにマージする
$ git merge new-feature
# マージされていることを確認する
$ git log