Visual Studio 2013 tools for Git not connecting to private Github repository

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:[email protected]/your_repo_name.


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