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