Visual Studio 2013 tools for Git not connecting to

2020-02-26 04:08发布

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.

9条回答
Explosion°爆炸
2楼-- · 2020-02-26 04:45

I had the same problem. I had logged in with personal credentials, now I was trying on my office credentials.

I fixed it by removing the credentials GitHub saves in your local machine.

Here are the steps I took:

  1. Go to control panel
  2. Top right : Search "Credentials" ==> select "Credential Manager"
  3. Under Generic credentials ==> You should see GitHub ==> click on arrow
  4. Click on "Remove from vault"
  5. Try to commit and sync again
查看更多
仙女界的扛把子
3楼-- · 2020-02-26 04:47

I had this happen to me in VS 2013 as well. I solved it by removing the project and re-cloning it from within VS. It's strange though, it was only happening on one of the multiple private repos I'm working with.

查看更多
Animai°情兽
4楼-- · 2020-02-26 04:48

I will not advise anyone else to do this. But luckily I was in the earlier stages of development. Therefore I had to delete the repository on Github site. The problem started after I tried to revert one of the changes. Github is more of a drag than a utility. I am a lone developer in my organization and doesn't make sense to me to be dealing with these problems. Simple local Git should have been enough.

查看更多
登录 后发表回答