最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin6浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论