用于Git的Visual Studio 2013工具不能连接到私人Github存储库 [英] Visual Studio 2013 tools for Git not connecting to private Github repository

查看:318
本文介绍了用于Git的Visual Studio 2013工具不能连接到私人Github存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置Visual Studio 2013以在Github上使用私有存储库。
当我尝试克隆它时,或者克隆了Github for Windows并尝试从Visual Studio中推/拉时,出现以下错误:


发生错误。详细消息:libgit2引发了一个错误。类别=净(错误)。
响应状态码不表示成功:404(未找到)。

它可以与公共存储库正常工作,但不能与私人之一。
它也适用于Windows客户端的Github。

解决方案

在@EdwardThomson的帮助下,我发现Visual Studio Git工具正在将证书保存到Windows中的Credential Manager中。

问题是,它不会将它保存在我正在查找它的Web Credentials类别中,而是在Windows Credentials中的Generic凭证组。


如果您因使用不同凭据而使用多个私人回购券,则会导致问题,因为您不会再次提示您。



你可以解决这个问题,如果你像这样使用repo url: https://用户名:password@github.com/your_repo_name


I'm trying to set up Visual Studio 2013 to work with a private repository on Github. I get the following error when I try to clone it, or if I clone with Github for Windows and try to push/pull from Visual Studio:

An error occurred. Detailed message: An error was raised by libgit2. Category = Net (Error). Response status code does not indicate success: 404 (Not Found).

It works correctly with public repositories, but not with a private one. It also works from the Github for windows client.

解决方案

With the help of @EdwardThomson I discovered that Visual Studio Git tools is saving credentials to Credential Manager in Windows.
The problem is that it doesn't save it in the Web Credentials category where I was looking for it, but in the Windows Credentials, down in the Generic Credentials group.

This causes problems if you are using multiple private repos with different credentials because you are not prompted again.

You can work around this, if you use the repo url like this: https://username:password@github.com/your_repo_name.

这篇关于用于Git的Visual Studio 2013工具不能连接到私人Github存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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