hliu
hliu

Reputation: 1047

why git clone failed when using HTTPS but succeed using git protocol

I use git client in linux command line without using any http proxy to clone https://git.gnome.org/m4-common/ but get failed:

% git clone https://git.gnome.org/m4-common/
Cloning into 'm4-common'...
fatal: repository 'https://git.gnome.org/m4-common/' not found

It's no problem with git://git.gnome.org/m4-common/

% git clone git://git.gnome.org/m4-common/
...
Checking connectivity... done.

Upvotes: 1

Views: 152

Answers (2)

Tim Biegeleisen
Tim Biegeleisen

Reputation: 521314

From the documentation for Git in GNOME:

With Git 1.6.6 and newer, http is possible too (please use the git protocol though!):

git clone http://git.gnome.org/browse/[project]

From this I take it that you need Git version 1.6.6 or later. Also, it appears that you should be using http and not https.

Upvotes: 1

Nils Werner
Nils Werner

Reputation: 36765

The links are at the bottom of the page:

git://git.gnome.org/m4-common

and

https://git.gnome.org/browse/m4-common

Upvotes: 2

Related Questions