I'm struggling with git/SSH multiple identities (one personal/work and one dedicated to yet another company)
I've managed to somehow create a virtual local "routing" thanks to https://simonbasle.github.io/2017/10/git-identities-and-ssh/, which selects the right SSH key depending on where the local repo is located on the disk. That's a first good step.
But I'm struggling to adapt my "gh" commands:
gh repo create REPO_NAME \
--template USER_NAME/TEMPLATE_NAME \
--private \
--clone
Doing this somehow successfully creates the REPO_NAME repository in the USER_NAME account, but then it fails at the "clone" step, with ERROR: Repository not found.
.
I believe that's because gh
doesn't use the right SSH key, but I don't understand how to specify which one to choose from.