github / github/vscode-github-actions

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

Đang mở
#257 0 bình luận 4 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
TypeScript
Star
660
Fork
213
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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 ?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.