20
18

More than 5 years have passed since last update.

Xcodeのxibファイルは開いただけで、modifiedになっちゃうので、しょっちゅうコンフリクトを起こす。
しかも、ファイルが開けなくなるので、手動で修正できない。

そんなときは、

# サーバ側に合わせる
$ git checkout --theirs <path>
$ git add <path>

# 自分の方に合わせる
$ git checkout --ours <path>
$ git add <path>

あってるかな?
なにかいい解決策を知っている方がいらっしゃったら、教えてください。

参照

Gitでコンフリクトした時のための備忘録

20
18
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
20
18