1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【GitHub】コンフリクトが発生した場合の対応

Posted at

記事概要

コンフリクトが発生した際の対応方法について、記述する。

事象

  1. ブランチAをマスターにマージする
  2. ブランチBをマスターにマージしようとしたが、コンフリクトが発生した
    Image from Gyazo

原因

2つのブランチで同じファイルを作業したため

解消方法

  1. 「Resolve conflicts」をクリックする
  2. 本来あるべきコードに編集し、コンフリクトの解消を行う
  3. 「Mark as resolved」をクリックする
  4. 「Commit merge」をクリックする
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?