I am having a very weird situation when cloning a Git repository from our company private server. The repository is not anonymous (it requires authentication), but when cloning, VS didn't ask any username and password and automatically use an old authentication of old employee. Is there a way to remove the saved username and password and make Visual Studio to prompt them when cloning?
If you need to access resources from a different account, you'll need to remove any existing GitHub account from Visual Studio, sign out from the web (GitHub.com), and then restart the process for adding the new GitHub account to Visual Studio.
From the Git menu, go to Settings. To set your user name and email at the global level, go to Git Global Settings; to set your user name and email at the repository level, go to Git Repository Settings. Provide your user name and email, then choose OK to save.
Look in the Windows Credential manager and remove/update your credentials there:
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