12

ブランチとからチェックアウトされmasterたブランチがあります。featuremaster

master他の開発者からコミットがプッシュされ、私は定期的ににマージしmasterfeature、他のブランチからの新しい開発に対応できるようにします。

git merge masterただし、以前に競合を解決して変更をコミットしたにもかかわらず、実行するたびに同じファイルで同じ競合が発生し続けます。

これの原因となる可能性のあるものとそれを防ぐ方法についてのアイデアはありますか?

ありがとう!

4

1 に答える 1

8

最初に、統合ブランチを機能ブランチにマージしないことを検討してください。

次に、 git rerereコマンドを見て、それを使用します。

$ git config --global rerere.enabled true

名前

  git-rerere - Reuse recorded resolution of conflicted merges

説明

  In a workflow employing relatively long lived topic branches,
  the developer sometimes needs to resolve the same conflicts
  over and over again until the topic branches are done (either
  merged to the "release" branch, or sent out and accepted upstream)
于 2012-09-17T10:39:30.377 に答える