Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disconnect Github account from Visual Studio Code

I am using VS Code on Linux mint. I was pushing to a git repo a few weeks ago and since the repo was private, github asked for authentication as it would. A browser window opened and asked if I want to keep this account for VS Code for all future git pushes, so I did that. Now I need to remove my this account from my VS Code. Now every time I try to push something via the VS terminal, it tries to push using that account. I need to remove that account and possibly add another one. I can not find this anywhere in the settings.

like image 693
hkjhadj1 Avatar asked May 13 '26 13:05

hkjhadj1


2 Answers

Open your Visual Studio Code Then look at the bottom left side there will be an Account option Clicking On it after you will see the Sign Out Option is there.

enter image description here

like image 53
MdNadeem Sarwar Avatar answered May 16 '26 04:05

MdNadeem Sarwar


Below Solution worked for me hope this will work for someone

You can delete your toke loggen in the account at github. delete the token for the designated PC.

GithubSite -> Login -> Settings -> Developer Settings -> Personal Access Token -> Delete (Token For that PC Name) -> click Agree (I Understand, delete this token)

like image 43
Sam Avatar answered May 16 '26 04:05

Sam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!