I have a public repo on a server (apache), I can clone it with SSH from local with :
$ git clone user@myserver:public_html/repo
But the same repo can't be cloned with http :
$ git clone http://myserver/repo
// fatal: repository 'http://myserver/repo' not found
With a browser I can see the content of my repo when entering (userdir mod is activated and set to be document root) :
http://myserver/repo
and the associated git folder with
http://myserver/repo/.git
I set the folder permission to 755.
What am I doing wrong ?
Try this:
git clone https://username@myserver.com/repo/.git
or the insecure version:
git clone https://username:password@myserver.com/repo/.git
Also make sure you are using the latest version of Git.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.