Failed to fetch from git@gitlab.com:group_name/proj_name.git
I am on gitg
3.32.1 on Manjaro current.
I have the same problem and it is only in gitg
. I have GitAhead and Visual Studio Code working out of the box, so it is not a repository or machine configuration. I use Gitlab private repository with trusted SSH key.
I checked against private repository with SSH remote configuration and I was able to reproduce the same problem:
git remote show origin
* remote origin
Fetch URL: git@github.com:Kulak/namecheap-ddns.git
The following was my attempt at troubleshooting, but it appears that it is not correct to use 'ssh://git@gitlab.com:group_name/proj_name.git' format. Neither git no gitg works with that remote URL.
I looked into code of libgit2
and it appears that it makes decision based on protocol prefix. However, Gitlab instructs NOT using 'ssh://' prefix. My git remote show origin
reports:
git@gitlab.com:MY_GROUP_NAME/MY_PROJ_NAME.git
I tried setting same URL, but with 'ssh://' prefix from GIT command line and it failed to resolve hostname from GIT command line (make sense, because they use non-number in place of port of URI string).
So, I rolled back the change.