hickford / git-credential-oauth

A Git credential helper that securely authenticates to GitHub, GitLab and BitBucket using OAuth.
Apache License 2.0
417 stars 14 forks source link

Multiple accounts #57

Closed KraXen72 closed 2 months ago

KraXen72 commented 3 months ago

Hi! is it possible to configure this to work with multiple accounts? if so, how? I would like to avoid SSH if possible, HTTPS just works on more public networks. Thanks!

hickford commented 3 months ago

Which host?

With GitHub, try setting the username in the repo:

 git config credential.username user1

You might also need to open the links with private browsing.

hickford commented 3 months ago

Small improvement for GitHub in https://github.com/hickford/git-credential-oauth/commit/433448941349b18aac69b08f34c1092f7a4db54e https://github.com/hickford/git-credential-oauth/releases/tag/v0.12.0

image

KraXen72 commented 3 months ago

github and gitlab for now, i have resolved it by using GCM and username@github.com/author/repo type urls.