解决合并时的冲突(已删除和已修改) [英] Solving conflicts on merge (Deleted and Modified)
问题描述
Master
和 Develop
。在开发过程中,我们做了一些改变,过了一段时间后我们合并成了Master。 前一段时间,我们不得不对 当然,现在当我们尝试合并Master< -Develop时,在修改的两个文件中存在冲突在硕士。 所以,我首先尝试了合并: 你可以看到有冲突,所以我尝试了一个git状态,然后一个git diff: 我想解决接受Master的变更的问题。 我想解决接受Master中所做更改的问题。 文件,使用 关于我们删除,如果您想保留删除,只需 A A Im trying to fix a conflict on a merge. I have to branches A while ago we had to push some modifications to Of course now when we try merge Master<-Develop there is a conflict in the two files modified in Master. So, first I tried the merge: As you can see there is the conflict, so I tried a git status and then a git diff: I will like to fix the problem accepting the changes made in Master. I will like to fix the problem accepting the changes made in Master. For a specific file, using Regarding the "deleted by us", if you want to keep that deletion, simply A A 这篇关于解决合并时的冲突(已删除和已修改)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! Master
git checkout
:
git checkout --ours - modukle / Webapp / sec / Webapp / Controller / VoucherController.php
code> git add -u 。
。
git status
不应该再显示出冲突。
git commit
来完成合并。Master
and Develop
. On Develop we made the changes that after a while we merge into Master.Master
since from there our server takes the code to deploy.
git checkout
:git checkout --ours -- modukle/Webapp/sec/Webapp/Controller/VoucherController.php
git add -u .
.git status
shouldn't show you anymore conflict.git commit
is needed to complete the merge.