Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: Get 'Bad credentials' when using Clone Repository

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?

like image 721
Peter Stephensen Avatar asked Apr 23 '26 08:04

Peter Stephensen


1 Answers

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

like image 61
James Gentes Avatar answered Apr 26 '26 09:04

James Gentes