-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple GitHub account support #127967
Comments
(Experimental duplicate detection) |
This would be extremely helpful. Maybe you could list the GitHub account you want to use in a configuration file that is in the project folder. Or multiple GitHub accounts could be listed in the 'Account' context menu and you could select which one to use. |
Need this :( |
Is this in the works? |
The biggest problem here is that GitHub doesn't have a way to be logged in to multiple accounts. You are automatically logged in with whatever account you're logged into in your browser and that makes it tough to do this feature in VS Code. |
what about some kind of script to switch accounts, which saves your info somewhere, and then just have in VScode a "switch account" button and it would automatically do it for you instead of manually logging out and in, kind of what Gmail has. |
Temp solution: download and install "VS Code Insiders" (so you will have 2 VS Code installed). |
Hi, I use Settings Sync/GitHub Copilot extensions on 1 gh account and the GitHub Pull Requests extension with another (work) gh account, and I am running into trouble. I can only use one combination or the other. Please support this thank you! |
Hi there, Rob from GitHub here. Our friends at Expedia are struggling with the lack of multi-account support within VS Code. Happy to provide more context around their use case if that's helpful. 🙏🏻 |
@rob-derosa we need work on the GitHub side for us to support this. Mainly, we need a way for someone to choose the account they want to use to log in with on the authorize API. |
I was able to sign into 2 github accounts on vscode for copilot.
|
I NEED this feature, would love to be able to have a context menu with all my github accounts and a fast and easy way to switch between them. EDIT: typo |
At my company we use on-prem GitHub Enterprise. I need to stay signed into it obviously for my work. VS Code Needs to Support multiple GitHub Accounts. |
I found a workaround... use your terminal with one account, then download the GitHub desktop version, and you can use another account with that one. been using the terminal for my personal use, and the GitHub desktop for my job. |
I've also heard you can use SSH for one account and a PAT for the other. |
@StewartRyanSony what feature/extension is bugging you to sign in to GitHub.com? |
@TylerLeonhardt, |
The new vscode Profiles feature is pretty awesome, I wonder if it's possible to link a github account to each vscode profile instead of multiple github accounts in general, that would make more sense and make it easier to switch between personal/work profiles |
Wouldn't work for me. I have a paid subscription to Copilot on one account. Why wouldn't I want that to work for all my profiles, regardless of which GitHub account I'm logged into, e.g. to manage PRs? |
ouch, still open. bummer |
It worked in code-insider when I enabled it in the settings! Thank you very much! |
finally after so long
…On Fri, Jul 26, 2024 at 8:24 PM SENKEN ***@***.***> wrote:
It worked in code-insider when I enabled it in the settings! Thank you
very much!
—
Reply to this email directly, view it on GitHub
<#127967 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BC2NICJWXTKSZZ5FRSHPTS3ZOJPJTAVCNFSM47ZTX7I2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRVGI4TGOBYGY3A>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
This e-mail message may contain confidential, proprietary or
legally privileged information. It should not be used by anyone who is not
the original intended recipient. If you have erroneously received this
message, please delete it immediately and notify the sender.
|
^ us from asking to receiving. But seriously. THIS IS AMAZING!!!! |
It's true, there is very very experimental support of multi-accounts for GitHub in VS Code. However, it's not quite ready for prime time as:
but we are making progress. So, while you can try it out, just know things may not work as you expect just yet. It's a long time coming, that's for sure and what a journey it has been to get here. (it's not been easy, otherwise we'd have had it sooner, I assure you!) |
I have a work and personal accounts. I am trying to push code to a public repo, VSCode asks me which account I want to use (gives me an option of picking between work and personal), I select my personal account, push, but when I go to the GitHub repo, the check in is done by my work account (which is my default global). Am I doing something wrong? |
It should be same as switching profiles in chrome, unable to understand why profiles shares the extension data. profiles are created for this kinda reasons only, its been too long for this issue, I don't know whether Microsoft gonna take a look into this or not but sure worth a go |
I closed this issue as the work is done. Since I didn't get a tonnnn of time to test this, I'm gonna defer turning this on by default for the Stable release next week. Here's the follow up issue to track that enablement: But once 1.94 drops, you can apply this setting:
|
How do I log in to the second account? Even after enabling the setting, I couldn't figure out how to actually log in to the second account. |
With tomorrow's Insiders build (this PR), Multiple GitHub account will be enabled by default. In order to log in to a second account you either need to:
|
Hi, @TylerLeonhardt ! Thanks for this! When can we expect this to be available outside of the Insiders version ? even if it requires turning on a experimental feature flag. I'm keen to try it out, but I don't use the Insiders version |
The feature is available in the current main release version you just need to set:
His last message was just saying that this setting will default to true instead of false in the next release of insiders |
Tacking on to ^^ next stable release is in 2 weeks which will have this changed default. (with the setting removed) |
Many of us have dedicated accounts for work and non-work tasks. However, VSCode's GitHub authentication does not seem to support more than one GitHub account.
There are currently two ways of dealing with this;
As mentioned in #71253, one can use git config settings for separate accounts. This is a bothersome approach, and in some cases requires extra steps for every repository you are trying to access.
Alternatively, one can sign out, and sign in on the other account every time one changes between working on work-code, and non-work code. Again, this is a bothersome approach, and prone to frustration as you have to check which account you've signed in to.
Would it be possible for VSCode to support multiple GitHub accounts, so that it can ask you which credentials you want to use per repository?
The text was updated successfully, but these errors were encountered: