Force git to treat files addedmodified on only 1 branch as merge conflicts - Stack Overflow

When merging, these 2 circumstances are resolved automatically:A new file was created on one branch aft

When merging, these 2 circumstances are resolved automatically:

  1. A new file was created on one branch after the divergence and not created on the other
  2. An existing file (created before the divergence) was modified on only 1 branch

Can I configure git such that it flags these circumstances as merge conflicts.

  • For scenario 1, I would be able to choose between including and removing the new file.
  • And for scenario 2, I would be able to choose between the modified file and the unmodified file.

Is this possible?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744111489a4558971.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信