Been playing around with this Microsoft Editor. Quite good, but some of the most basic UI bits are missing.
Can't figure out how to unlink / sign out from the Git repo I signed in before. Quitting and reopening the software doesn't work and - useless to say - I have many repo I work with.
Any idea?
49 Answers
On the bottom of the side panel, there is an account icon (usually its sitting right above the cog icon). Click on it, click on your user name, and choose "log out".
To stop VSC from trying to link to the Git repo, in VSC: File -> Preferences -> Settings, paste this into the settings.json:
"git.enabled": false Go to settings
search for 'git'
uncheck the git : Github Authentification
vs code will ask you your user and password the next time you commit somthing
1I found it in GitHub settings under
But since I had two laptops with two versions of Visual Studio configured to access GitHub account, there was only one token to be removed as "GitHub Extension for Visual Studio", it seems that it is not possible "yet" to remove access permission for specific machine.
Below Solution worked for me hope this will work for someone
GithubSite -> Login -> Settings -> Developer Settings -> Personal Access Token -> Delete (Token For that PC Name) -> click Agree (I Understand, delete this token)
Or
Click below (with credentials if you are not logged in)
and delete token (For that PC Name)
In the top right corner of visual studio, you see the icon of your microsoft account. Click on it and choose Account Settings. A windows will open then in which you will be able to remove your github account.
Ok, the problem was with the concept of "folder" rather than "project". Visual Studio Code consider the folder (hence the Git) open until the folder is not intentionally closed from the file menu.
It is quite simple once you see it. Check the left bottom of the VSCode and there should be a user icon that will allow you to sign out. If you want to sign in, just try git pull command and it will ask you to re-authorize again.
This solution here worked for me super easy account logout from team explorer git
Close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService as you did.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\7.0\Cache
Restart Visual Studio > Team Explorer > Manage Connections to check if the Enter credential dialog popup.
