When there are mixed git remotes (some pointing to github.com, some pointing to GHE instances), we only scope down to the first hostname we find and ignore the others. This is by design https://github.com/cli/cli/pull/1258/files#diff-15cce7299aae8810bcab9b0bf9a2fdb1R36
However, it should be possible to use GH_HOST to explicitly choose a host. Right now, GH_HOST is not respected with parsing git remotes.
Originally reported in #1645 (comment)
When there are mixed git remotes (some pointing to
github.com, some pointing to GHE instances), we only scope down to the first hostname we find and ignore the others. This is by design https://github.com/cli/cli/pull/1258/files#diff-15cce7299aae8810bcab9b0bf9a2fdb1R36However, it should be possible to use GH_HOST to explicitly choose a host. Right now, GH_HOST is not respected with parsing git remotes.
Originally reported in #1645 (comment)