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.
精彩评论