Skip to content

merge_scratch vm_develop

Kouji Takao edited this page Apr 28, 2020 · 9 revisions

本家Scratchのdevelopブランチのマージ手順

アップストリーム(https://github.com/LLK/scratch-vm.git )のdevelopブランチをマージする手順を説明します。

おおむね2週間に1回程度行うといいでしょう。

手順

初期設定

初めてマージ作業をする場合は以下のコマンドを実行して下さい。

$ git remote add upstream https://github.com/LLK/scratch-vm.git

以下のコマンドで、設定を確認することができます。下の2行が表示されていればOKです。

$ git remote -v              
origin  https://github.com/smalruby/scratch-vm.git (fetch)
origin  https://github.com/smalruby/scratch-vm.git (push)
upstream        https://github.com/LLK/scratch-vm.git (fetch)
upstream        https://github.com/LLK/scratch-vm.git (push)

マージ方法

$ git checkout develop
$ git pull --rebase
$ git fetch -p upstream
$ git pull upstream develop

ここで、コンフリクトが発生すれば解消します。

マージの注意点

随時追記予定。

Clone this wiki locally