-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Allow multiple account credentials #326
Copy link
Copy link
Open
Labels
authrelated to tokens, authentication state, or oauthrelated to tokens, authentication state, or oauthcoreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIa request to improve CLIpitchpitched internally for prioritisationpitched internally for prioritisation
Metadata
Metadata
Assignees
Labels
authrelated to tokens, authentication state, or oauthrelated to tokens, authentication state, or oauthcoreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributorsenhancementa request to improve CLIa request to improve CLIpitchpitched internally for prioritisationpitched internally for prioritisation
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the feature or problem you’d like to solve
I have two accounts on github each with access to a different set of private repositories. Currently I use a combination of git's
[IncludeIf ...]config and a custom config which overrides the SSH private key I use for certain repositories. E.g.:In
~/.gitconfig:and in
~/work/.gitconfig:It will be great if the credentials for
ghcan also be configured per repository as well.Proposed solution
There are a bunch of options I can think of:
ghconfig by a file in a local clone's.gitdirectoryghconfig which defines which repos/orgs should use which credential. E.g.How will it benefit CLI and its users?
It will allow Github users with multiple accounts of varying access to seamlessly work on different repositories.