簡體   English   中英

$ git clone http://mySite.com/dirWhereTheRepoIs,如何通過http克隆回購?

[英]$ git clone http://mySite.com/dirWhereTheRepoIs, how can I clone a repo through http?

創建試用.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?

我怎樣才能克隆那樣的回購?

設置和使用SmartHTTP - http://progit.org/2010/03/04/smart-http.html

SmartHTTP現在是標准。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM