My enterprise is locked down to Enterprise credentials, so when I use my personal repos, I have to execute gh auth login
to enable that repo, and if I am working on enterprise repos simultaneously in other windows, I have to execute that again there to enable that repo, etc. Both my personal and enterprise hostnames are "github.com", so the --hostname
option doesn't work.
Is there a way to save auth information (like a local copy of ~/.config/gh/hosts.yml) within a repo, so that I can configure my personal repos to use the local gh auth
config and avoid multiple gh auth login
commands?