Multiple GitHub accounts in Visual Studio #23843
-
I have read Authenticating to GitHub but I do not understand how to use another GitHub account. I try clicking on Manage Connections; I assume that “Connect to a project…” is not for GitHub. When I do “Connect to GitHub” the GitHub button is disabled and I assume I don’t have GitHub Enterprise. I cannot get that to work. I tried putting “https://github.com/SamHobbsOrg” into the server addres but I am not surprised that that does not work. When I click on “Create” under “GitHub” I (think I) see a drop-down for selecting a GitHub account; am I correct that that is what that drop-down is for? Is there support for more than one GitHub from VS? Oh, I realize it is actualy an extension (right) but it is provided with VS by default, right? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Something else I have tried is to add the following to the config for a small test project/repository. VS has not asked me to authenticate this account but maybe it will later. If so then this is an indirect way to do it.
I have also overriden the user name in the config file but I will be very surprised if that makes a difference. |
Beta Was this translation helpful? Give feedback.
-
Okay, I found it. In the Connect window for GitHub there is a “Sign Out” link. I used that and then I was able to sign into this account (that I am posting this from). |
Beta Was this translation helpful? Give feedback.
-
but then… when you sign in github later… trought the team explorer; it again uses the other - maybe default account - not your last account you have signed in. this causes the situation like : your next git commit sync with other account’s… |
Beta Was this translation helpful? Give feedback.
-
Hi! I’m having this problem you mention. I signed into account XX then wanted to log out, so I signed out from XX (through user icon in VS). After that I signed in with YY account and when I want to commit, it does with XX account. |
Beta Was this translation helpful? Give feedback.
-
Was this resolved? I am still facing this issue. |
Beta Was this translation helpful? Give feedback.
-
In Windows, If you clear the Windows Credentials (User) under the Manage Windows Credentials, either by removing them or re-authenticating, it would be helpful. Please let me know if that helped. |
Beta Was this translation helpful? Give feedback.
-
Github extension offers you to allow sign in using Github… You may choose Cancel to do it manually!! Then you can fill in your username and password in the command palette. "The |
Beta Was this translation helpful? Give feedback.
-
There is a feature request for VS you can upvote: Visual Studio Feedback |
Beta Was this translation helpful? Give feedback.
Okay, I found it. In the Connect window for GitHub there is a “Sign Out” link. I used that and then I was able to sign into this account (that I am posting this from).