LoginSignup
24
25

More than 5 years have passed since last update.

Gitでバイナリファイルがコンフリクトした際の対処方法

Posted at

対処方法

※masterブランチにいてdevelopブランチをマージした場合

# developブランチの対象ファイルを採用
git checkout --theirs 対象ファイル
# masterブランチの対象ファイルを採用
git checkout --ours 対象ファイル

ちなみにmasterブランチのをそのまま採用って場合はいちいちgit checkout --ours 対象ファイルしなくてもよいみたい。

SourceTreeでも出来ないんだろうか。。

参考リンク

24
25
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
24
25