Skip to content

How to switch user aka. logout and sign in? #887

@StefMa

Description

@StefMa

Recently I had to create a new GitHub Account for my company because of legal reasons.
Before that I used this Account (and this cli tool) to navigate in our companies repository.
Now this Account don't have access to the repository anymore but my other account.
I also want to transfer the current "users" from the cli tool to my new GitHub user so that I have access to my companies repository again.
Unfortunately I don't see anything how can I do this. There is no option to "login" or "logout".
I also tried to uninstall and install the tool again - without success. It seems the config survives.. But I don't know where it is located :/

Anyways.
Question: How can I change my account (on macOS)?
Request: Please add a "login" and "logout" option to the CLI 🙃

Thank you 👍
Nice job with that tool. I really like it 🥇

Update

Okay, I just found this one

fmt.Fprintf(os.Stderr, " 2. Copy the contents of ~/.config/gh/config.yml to this system")

After I deleted this configuration file I could login again (with my new account).
But still, the request to "logout" is still valid I guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions