ブランチ切って作業をしているときに、他の人がmasterに変更を加えていた場合に、シレッと今のmasterの先頭から自分がそのブランチを切って作業しているような状態にしたい。という場合はrebaseする。
手順
①git checkout master
masterにチェックアウト
②git pull
まずはmasterを最新の状態に進める
③git checkout topic
topicに戻る
④git rebase master
今のtopicをぎゅいんと最新にしたmasterの先にくっつける
(⑤masterのどこかのcommitでconflictした場合は、それを修正してrebaseを繰り返す)