$git克隆http://mySite.com/dirWhereTheRepoIs,如何通过http克隆回购协议?
创建试用版.git-repo$git克隆http://mySite.com/dirWhereTheRepoIs,如何通过http克隆回购协议?,git,Git,创建试用版.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/hh
$ 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?
我如何才能像那样克隆回购协议?设置并使用SmartHTTP-
SmartHTTP现在是标准的。您是否正在从服务器上运行
git update server info
?从你的照片上看不清楚description@DorShemer:是的,我正在拥有repo的服务器上运行该命令,repo位于public_html-dir中,我正试图从中克隆它。是否http://mysite.com/
从主机本身正确解析?这可能会有帮助: