VisualStudio:libgit2引发了一个错误。类别=结帐 [英] VisualStudio: An error was raised by libgit2. Category = Checkout

查看:483
本文介绍了VisualStudio:libgit2引发了一个错误。类别=结帐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图从TFS中提取所有提交(总共5个),但是在Git中使用TFS,为Git安装了Visual Studio工具。我在下面得到这个错误:

 发生错误。详细消息:libgit2引发了一个错误。 
Category = Checkout(MergeConflict)。
2冲突阻止结帐

如何解决此问题?



解决方案

遗憾的是,Git的Visual Studio插件不会显示您需要解决此问题的错误消息。 (我希望他们可以为以后的版本规划这个功能。)



尝试使用Git Bash或使用 TortoiseGit 。这两种工具都应该让你知道你的冲突在哪里。


I'm using TFS with Git, installed Visual Studio Tools for Git.

I'm trying to pull all commits (5 in total) from TFS, but I get this error below:

An error occurred. Detailed message: An error was raised by libgit2. 
Category = Checkout (MergeConflict).
2 conflicts prevent checkout

How do I resolve this?

解决方案

Sadly, the Visual Studio plugin for Git doesn't display the error messages you need to troubleshoot this problem. (I hope they plan that feature for a later release.)

Try pulling the latest commits using Git Bash or using TortoiseGit. Either of those tools should let you know where your conflicts are.

这篇关于VisualStudio:libgit2引发了一个错误。类别=结帐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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