Skilla123
Skilla123

Reputation: 81

Change Git Account in VSCode

I accidentally entered the credentials form an old github account the first time VSCode tried to connect when synchronizing my changes (the credentials were right for the old account, but i would like to use the new account).

Now I cannot find a way to change my account. Already tried uninstall/install, but VSCode keeps remeberming my login.

Any ideas how to refresh the given account?

Upvotes: 3

Views: 13881

Answers (1)

Lalit Sachdeva
Lalit Sachdeva

Reputation: 6619

git config --global --unset credential.helper

this will unset the git credentials for your system, Now you can use your new credentials and then enable the cache for git

git config --global credential.helper wincred
git config --system credential.helper wincred

this will again enable the cache for saving git password

Upvotes: 2

Related Questions