繁体   English   中英

如何从ssh git存储库url导入gitlab中的存储库?

[英]How import repository in gitlab from a ssh git repository url?

我想用ssh://在gitlab中导入一个项目

我在同一个网络上:

  • 安装在raspebrry上的gitlab
  • 同义词上的git服务器

我的git服务器只能通过ssh:// ***** @ mysynology:/the/repository/path/myproject.git获得

我尝试使用没有密码的ssh密钥验证,但我不知道gitlab用来执行git克隆的用户...

我在gitlab中有这条消息:

Error importing repository ssh://*****@mysynology/the/repository/path/myproject.git into root/myproject - Cloning into bare repository '[REPOS PATH]/root/myproject.git'...
Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

首先尝试SSH到*****@mysynology ,并确保可以访问/the/repository/path/myproject.git

然后使用SSH URL在您的本地PC上克隆repo。

最后,回到你的GitLab。

我不知道gitlab用来做git clone的用户...

不需要:创建一个新的空GitLab存储库(以接收您的推送)。
并且新存储库的GItLab页面将向您显示您应该包含在SSH URL中的SSH用户(通常是' git ')

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM