4

I use vscode version 1.45.1. I get 'Bad credentials' when using Clone Repository. Lately I changed my username at github. That could be the reason. How do I tell vs code that?

Peter Stephensen
  • 907
  • 2
  • 11
  • 15
  • Does this answer your question? [Changing the git user inside Visual Studio Code](https://stackoverflow.com/questions/42318673/changing-the-git-user-inside-visual-studio-code) – SwissCodeMen May 30 '20 at 21:41

1 Answers1

5

You'll need to open up Credential Manager in Windows and delete (or edit) the Github account there:

Windows Credential Manager

You'll need to restart Visual Studio Code for it to prompt you to login to Github again.

Also note that you may need to revoke the OAuth connection in Github under https://github.com/settings/applications:

Github OAuth for VSCode

James Gentes
  • 7,528
  • 7
  • 44
  • 64