卡在“正在进行的合并操作"中 [英] Stuck at "A merge operation in progress"

查看:90
本文介绍了卡在“正在进行的合并操作"中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 在 Visual Studio 中
  • 从远程仓库拉取
  • 1 个合并冲突.
  • 手动合并,点击接受合并"
  • 消息:正在...存储库中进行合并操作.提交您的更改以完成合并操作."
  • 但是,没有什么可提交的:有 0 个待处理的更改,除了 Abort 之外,似乎没有任何操作是可能的.

屏幕截图:https://pbs.twimg.com/media/DBOeRIiXsAEbnLP.jpg

  • 远程 git 存储库托管在 Visual Studio Team Services 中
  • 带有所有更新的 Visual Studio 2017

推荐答案

我的一个项目遇到了非常相似的问题,它在 Visual Studio 2017 中给了我相同的 TFS 消息.我也在使用 git.在我的情况下,我需要在发布合并之前手动向提交添加评论.由于我必须手动合并冲突,因此需要注释而不是在没有冲突的合并时自动填充的消息.

I had a very similar problem with one of my projects which gave me the same TFS message in Visual Studio 2017. I was also using git. In my case I needed to manually add a comment to the commit before posting the merge. Since I had to manually merge the conflicts, a comment was needed rather than the auto-populated message that takes place on a merge without conflicts.

我很清楚提交需要注释,但如果我没记错的话,VS 2015 会在合并时自动填充注释,即使您手动修复了任何合并问题.无论如何,在 VS 2017 中,您需要在解决冲突时添加提交注释.

I'm well aware that commits need comments but if I recall correctly, VS 2015 would auto-populate the comment on a merge, even if you manually fixed any merge issues. Regardless, in VS 2017 you will need to add a commit comment when there are resolved conflicts.

这篇关于卡在“正在进行的合并操作"中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆