简体   繁体   English

Visual Studio Git sln文件合并冲突

[英]Visual Studio Git sln file merge conflicts

This cannot be impossible to fix but there is something wrong with my git workflow using Visual Studio (2017). 这不可能无法解决,但使用Visual Studio(2017)的git工作流程出了点问题。 I have another dev that I share a solution with multiple projects with. 我还有一个开发人员,我与多个项目共享一个解决方案。 At the moment we are going through the code base and adding existing projects to the solution but when I push my branch (call it DAL ) to the server (Bitbucket) and do a pull request to merge it into the Development branch, all goes well. 目前,我们正在遍历代码库,并将现有项目添加到解决方案中,但是当我将分支(称为DAL )推送到服务器(Bitbucket)并进行拉取请求以将其合并到Development分支时,一切顺利。 When he tries to do a similar operation from his branch ( Tests ), we always get a solution file merge conflict. 当他尝试从其分支机构( Tests )执行类似操作时,我们总是会遇到解决方案文件合并冲突。 There MUST be a way to add projects in different branches and merge them back into a Development branch without this headache right? 必须有一种方法可以在不同的分支中添加项目,然后将它们合并回到Development分支中,而不会出现这种麻烦吗? The only solution I could find is to go into the Development branch, create all the projects first, then branch to Database and Tests and add the associated project files. 我唯一能找到的解决方案是进入Development分支,首先创建所有项目,然后分支到Database and Tests并添加关联的项目文件。 This seems very obtuse to me but I can't seem to find a different way of doing it. 这对我来说似乎很钝,但是我似乎找不到其他方法。 Seems like this should be so obvious but it is escaping me. 似乎这样的现象应该如此明显,但它在逃避我。 I did a thorough search for this question but found nothing that solves the problem - please bear with me because I know I can't be the only guy dealing with this. 我对这个问题进行了彻底的搜索,但没有找到能解决问题的方法-请多多包涵,因为我知道我不是唯一处理此问题的人。

I think the problem you are having is that you're trying to do it directly in bitbucket. 我认为您遇到的问题是您尝试直接在bitbucket中进行操作。 Merge conflicts are very common and not the end of the world. 合并冲突非常普遍,并非世界末日。

See here: https://confluence.atlassian.com/bitbucket/resolve-merge-conflicts-704414003.html 看到这里: https : //confluence.atlassian.com/bitbucket/resolve-merge-conflicts-704414003.html

I'd recommend merging development into tests locally and resolve the merge conflicts on your local machine. 我建议在本地将development合并到tests ,并解决本地计算机上的合并冲突。 Then push the newly merged tests branch to bitbucket. 然后将新合并的tests分支推送到bitbucket。

Once you've done than, bit-bucket will let you merge tests back into development . 完成之后,bit-bucket将使您将tests合并回development

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM