0
2

More than 3 years have passed since last update.

rebaseとは

Posted at

IMG_20181025_170659.jpg

ブランチ切って作業をしているときに、他の人がmasterに変更を加えていた場合に、シレッと今のmasterの先頭から自分がそのブランチを切って作業しているような状態にしたい。という場合はrebaseする。

手順

git checkout master
masterにチェックアウト
git pull
まずはmasterを最新の状態に進める
git checkout topic
topicに戻る
git rebase master
今のtopicをぎゅいんと最新にしたmasterの先にくっつける
(⑤masterのどこかのcommitでconflictした場合は、それを修正してrebaseを繰り返す)

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2