码迷,mamicode.com
首页 > 移动开发 > 详细

Git does not apply deleted files when merging an old branch into the master. How can I tell Git to apply deleted files?

时间:2020-03-23 16:40:27      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:master   遇到   bsp   break   with   git   depend   this   name   

Git does not apply deleted files when merging an old branch into the master. How can I tell Git to apply deleted files?

The only way I can fathom this possible situation is if you created two different files, each with the same filename, in independent branches.

 

我遇到的情况的是Branch5和Branch6基于同一个commit出来的分支,都包含文件A

Branch5删除了文件A

Branch6修改了文件A

在Branch6分支上合并Branch5,发现那个文件被显示为新增

符合上面说的情况,

 

如果Branch6没有修改文件的话,那么Branch5的删除操作应该会自动被合并到Branch6

 

Git does not apply deleted files when merging an old branch into the master. How can I tell Git to apply deleted files?

标签:master   遇到   bsp   break   with   git   depend   this   name   

原文地址:https://www.cnblogs.com/chucklu/p/12552808.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!