开发者

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

I 开发者_StackOverflowwant to clone git repository from another computer but it gives me a message of:

did you run git update-server-info on the server?

what should I do? Anyone can help me?

Thanks


As Jefromi suggested, use

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

(update your username and "myserver" to real ones)


It maybe that you are cloning over HTTP which is a dumb protocol and requires git update-server-info to be run. Try running git update-server-info on the server as the message suggests and re-clone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜