2012-01-23 136 views
0

创建试用git的-repo

$ mkdir Test; cd Test; git init 
$ echo "Just dummy test file" > test1; git add . 
$ git commit -m "cloning soon through http, this repo is in public_html -dir" 
$ pwd 
/users/hhh/public_html 

现在试图克隆它

$ git clone http://mysite.com/hhh/Test/ 
Cloning into Test... 
fatal: http://mysite.com/hhh/Test/info/refs not found: did you run git update-server-info on the server? 
$ git update-server-info 
$ git clone http://mysite.com/hhh/Test/ 
Cloning into Test... 
fatal: http://mysite.com/hhh/Test/info/refs not found: did you run git update-server-info on the server? 

我如何可以克隆这样的回购?

+2

你是否在服务器上运行'git update-server-info'?从您的描述中不清楚 –

+0

@DorShemer:是的,我正在服务器上运行命令,其中有repo,repo在public_html -dir中,我试图克隆它。 – hhh

+0

'http:// mysite.com /'是否正确解析主机本身? – Romain

回答