hhh
hhh

Reputation: 52850

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

Creating Trial .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

And now trying to clone it

$ 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?

How can I clone the repo like that?

Upvotes: 0

Views: 315

Answers (1)

manojlds
manojlds

Reputation: 301367

Setup and use SmartHTTP - http://progit.org/2010/03/04/smart-http.html

SmartHTTP is the standard now.

Upvotes: 2

Related Questions