Change github account in Vscode

Asked

Viewed 214 times

1

How do I change the default Github account within VS Code, because when I create a remote repository (Publish to Github button) always points to the wrong account!

Today in Vscode is configured the Atilalavor account but would like to configure another!

inserir a descrição da imagem aqui

1 answer

0

I had the same problem a long time ago, try to run this:

git config --global user.email "[email protected]"

I also found the following way to change the default account (which was not my case):

Usually Vscode uses the system credential manager’s github credential, it does not store anywhere in the settings. Then try searching or going to the credential manager (Windows Control Panel) -> Windows credentials -> Update your Github password in the list.

I hope I’ve helped!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.