Posts tagged: gh

All posts with the tag "gh"

1 posts latest post 2025-12-07

When using two GitHub accounts the gh cli gives very easy gh auth switch workflow from the cli.

gh auth switch –help Switch the active account for a GitHub host.

This command changes the authentication configuration that will be used when running commands targeting the specified GitHub host.

If the specified host has two accounts, the active account will be switched automatically. If there are more than two accounts, disambiguation will be required either through the --user flag or an interactive prompt.