26
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git で 削除したファイルのコンフリクト解消方法

Last updated at Posted at 2013-08-02

以下のようなエラーが出る

CONFLICT(modify/delete)

Automatic merge failed; fix conflicts and then commit the result.

選択肢は2つ

  1. ファイルを削除
  2. ファイルを追加する

1. ファイルを削除

git rm res/layout/dialog_item.xml


2. ファイルを追加する

HEADのファイル変更を受け入れる

git add res/layout/dialog_item.xml

で、 git commit する

参考

git - How do I fix a merge conflict due to removal of a file in a branch? - Stack Overflow

26
23
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
26
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?