github / github/vscode-github-actions

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

Abierto
#257 0 comentarios 4 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
660
Forks
213
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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](https://vanthanhtran245.github.io/use-multiple-ssh-key-for-different-git-accounts/).

```config
# 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 git@github.com:[my work GitHub group]/[my project].git`

For work github.com repos:
`git remote add origin git@github.com-work:[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 ?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.