I was using the Microsoft Git Provider in Visual Studio 2013 to clone projects from our git repository. I think the first time it asked me for some credentials, and ever since I could pull, commit and push my changes. But, recently I had to change my password for that repository (outside the visual studio), and no I always receive the 401 error saying that I'm not authorized. The problem is that I don't know how to change my credentials which are used by the visual studio.
To configure Git settings in Visual Studio, choose Settings from the top-level Git menu. Choose Git Global Settings or Git Repository Settings to view and configure global-level or repository-level settings. You can configure several common Git settings, as described in the following sections of this article.
Go to Control Panel > User Accounts > Credential Manager > Windows Credentials. You will see Git credentials in the list (e.g. git:https://). Click on it, update the password, and execute git pull/push command from your Git bash and it won't throw any more error messages.
I was wondering where the visual studio stores these credentials used by the Microsoft Git Provider
and finally found it.
The steps you have to do, assuming you are using Windows 10, is as follows:
1- Control Panel
2- User Accounts
3- Manage your credentials
4- Windows credentials
5- Under the Generic Credentials find the URL of the repository and click on it
6- Edit
7- Change the password to the correct one
8- Done!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With