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?
我如何可以克隆这样的回购?
你是否在服务器上运行'git update-server-info'?从您的描述中不清楚 –
@DorShemer:是的,我正在服务器上运行命令,其中有repo,repo在public_html -dir中,我试图克隆它。 – hhh
'http:// mysite.com /'是否正确解析主机本身? – Romain