Closed wjbuys closed 1 year ago
You can use the GitHub
host type rather than a custom one. Host
isn't really a good name for the option in the settings as it's mostly about the URL format i.e. using the host GitHub
will work with Github Enterprise server
.
The protocol of the remote url you posted, git+ssh://git@git.example.com/some/repo
, doesn't look quite right though, shouldn't it be ssh://git@git.example.com/some/repo
?
Hm, that's odd, I've re-cloned that repo with a more recent git client, and I get a more normal remote url:
[remote "origin"]
url = git@git.example.com/some/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
I think that git+ssh
url was a quirk of an older ssh bastion setup or something. Changing to use the new remote without the +
fixes it for me.
Thanks for the help!
We have a Github Enterprise server (redacted actual hostname with
example.com
) which only supports SSH remotes, so we have a remote like:I configured this as a custom host:
But when I try to copy the link, I get this error: