vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

How to use different github.com accounts in different vscode instances

Open copdips opened this issue 2 years ago • 0 comments

Hello,

I have 2 github.com accounts (perso and work). In order to use both under the same linux bash with git commands, I use the method described here.

# Personal GitHub account
Host github.com
 HostName github.com
 User git
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/id_rsa

# Work GitHub account
Host github.com-work
 HostName github.com
 User git
 AddKeysToAgent yes
 UseKeychain yes
 IdentityFile ~/.ssh/work_rsa

For personal githubom repos: git remote add origin [email protected]:[my work GitHub group]/[my project].git

For work github.com repos: git remote add origin [email protected]:[my work GitHub group]/[my project].git

With vscode, i can only authenticated to a single github.com account, is there an easier way to have both available ?

copdips avatar Sep 06 '23 12:09 copdips