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:
- Go to control panel
- Top right : Search "Credentials" ==> select "Credential Manager"
- Under Generic credentials ==> You should see GitHub ==> click on arrow
- Click on "Remove from vault"
- Try to commit and sync again