简体   繁体   English

https的git clone在其他机器上不起作用

[英]git clone by https does not work on other machine

On my local machine(Linux), I clone the repo with 在我的本地计算机(Linux)上,我使用

git clone https://rcffc@dev.kom.e-technik.tu-darmstadt.de/gitlab/WaelKH/KM_2_2017_Feature_Selection.git

and it asks me for my password. 并要求我输入密码。 After typing the password I can clone the repository, fine. 输入密码后,我可以克隆存储库,很好。

On the server(Windows), the command leads to 在服务器(Windows)上,该命令导致

remote: Not Found
fatal: repository 'git clone https://rcffc@dev.kom.e-technik.tu-darmstadt.de/gitlab/WaelKH/KM_2_2017_Feature_Selection.git/' not found

Please help me. 请帮我。

UPDATE: It is a private repository. 更新:这是一个私有存储库。 UPDATE 2&3: Made question clearer. 更新2&3:使问题更清晰。 UPDATE 4: Included OS info UPDATE 5: Included actual commands. 更新4:包含的操作系统信息更新5:包含的实际命令。

克隆存储在http://www.example.com/foo/bar.git中的存储库的命令是

git clone https://www.example.com/foo/bar.git

Try to check if curl https://username@remote.git works. 尝试检查curl https://username@remote.git有效。 First, as @sensorario mentioned, you should make sure your URL is valid, and you should also guarantee that curl is using the right certificate for the https connections since AFAIK git commands internally uses curl. 首先,如@sensorario所述,您应确保URL有效,并且还应确保curl使用正确的证书进行https连接,因为AFAIK git命令在内部使用curl。

UPDATE 更新

git clone https://your_server_ip/your_user_name/your_repo_name.git

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

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