LoginSignup
1
0

More than 1 year has passed since last update.

git rebaseの個人的な理解

Last updated at Posted at 2022-03-15

rebase

概要

今いるbranchの根本を変えるコマンド

git_rebase.jpg

コマンド

$ git rebase develop

rebaseの途中で止まったら

コンフリクトがあります。

git statusで出てきた赤いプログラムを見に行って、変更箇所のどっちを残すか指定しましょう。

明らかにpythonとかそういうプログラムじゃないもの(>>>なんちゃら)みたいなもののが追加されているんで、それがコンフリクト起こしてるものです。

上の図の場合はdevに入っているほうが(>>>なんちゃら)になっていました。

それが直し終わったらgit rebase --continueを打ってrebaseの続きを行いましょう。

終わると上の赤色のfeature/1みたいなブランチになります。

1
0
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
1
0