Take the 2-minute tour ×

I want to clone git repository from another computer but it gives me a message of:


what should I do? Anyone can help me?


share|improve this question
What command are you executing to try to make your clone? –  sarnold Feb 21 '11 at 4:41
I'm using this command: git clone http: //myserver/home/redmine/git_repositories/testproj.git –  vinyuri Feb 21 '11 at 5:00
If you're doing this between machines you control, over a local network, ssh might be a lot easier: git clone user@host:path/to/repo.git. –  Jefromi Feb 21 '11 at 6:16

2 Answers 2

up vote 2 down vote accepted

As Jefromi suggested, use

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

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

share|improve this answer
@xxh. Thanks a lot! It works for me. –  vinyuri Feb 22 '11 at 5:28

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.

share|improve this answer
It might be worth adding that using the sample post-update hook is a good way to make this happen automatically after someone pushes to the server's repository... –  Mark Longair Feb 21 '11 at 8:35

Your Answer


