Skip to content

Document the relationship between hosts and active accounts #9021

@danfbfern

Description

@danfbfern

Describe the bug

Have two different accounts, one is my personal one and the other its from from github enterprise.
I'm able to push, commit, etc with both my accounts but apparently I have been committing to the enterprise with my personal one because both of the accounts are shown as active, and the gh auth switch doesn't do anything.

For context, I have two different SSH keys and used each one to configure the gh cli but was expecting to have one as active and the other to not be active.
Tried doing it all over again, with HTTPS instead with no luck

I'm using gh version 2.48.0

Steps to reproduce the behavior

  1. Add multiple accounts
  2. check gh auth status to see if both are active at the same time

Expected vs actual behavior

image

I expected to one account with active on true and the other on false

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreThis issue is not accepting PRs from outside contributorsdocsgh-authrelating to the gh auth command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions