简体   繁体   English

如何在Linux中将git存储库从一台计算机克隆到另一台计算机?

[英]How to clone git repository from one machine to another in linux?

I want to clone git repository from another computer but it gives me a message of: 我想从另一台计算机克隆git存储库,但这给了我以下消息:

did you run git update-server-info on the server? 您在服务器上运行了git update-server-info吗?

what should I do? 我该怎么办? Anyone can help me? 有人可以帮助我吗?

Thanks 谢谢

As Jefromi suggested, use 如Jefromi所建议,请使用

git clone redmine@myserver:/home/redmine/git_repositories/testproj.git

(update your username and "myserver" to real ones) (将您的用户名和“ myserver”更新为真实的用户名)

It maybe that you are cloning over HTTP which is a dumb protocol and requires git update-server-info to be run. 可能您正在通过HTTP克隆,这是一个愚蠢的协议,需要运行git update-server-info Try running git update-server-info on the server as the message suggests and re-clone. 尝试按照消息提示在服务器上运行git update-server-info并重新克隆。

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

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