Replies: 6 comments 1 reply
-
|
The gh CLI likely defaults to using github.com as the host when interacting with GitHub. SSH aliases in ~/.ssh/config are respected by Git itself, but the CLI may not map them correctly when creating remotes or resolving repository URLs. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
I don't think
not: So the practical workaround is:
git remote set-url origin git@github.com-personal123:personal123/sample-repo.gitSo my read is: SSH config aliases are respected by Git, but |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello gh cli team, before anything else thanks for this wonderful tool ❤️
I am wondering if this is possible when running gh repo create? Is there
some flags that enables us to do this? Appreciate your guidance on this.
Sample "~/.ssh/config"
Terminal command
Beta Was this translation helpful? Give feedback.
All reactions