Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the credentials used by Microsoft Git Provider in visual studio 2013

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.

like image 249
mohsen kamrani Avatar asked Aug 23 '16 02:08

mohsen kamrani


People also ask

How do I change my credentials in Git 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.

How do I change the credential manager in Git?

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.


1 Answers

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!

like image 100
mohsen kamrani Avatar answered Sep 21 '22 17:09

mohsen kamrani