Why does github offer two loading methods?

Github allows you to clone a public repository in one of two ways. Two methods are switched in the download section of the repository main page:

https://github.com/scrooloose/nerdtree.git

git://github.com/scrooloose/nerdtree.git

The team git cloneworks with both, so why are there two methods? Can you explain why you are using one over the other?

+3
source share
4 answers

The git protocol has the following key issues:

  • The regular port on which the service is running (9418) may not be available behind restrictive firewalls.
  • There is no user authentication, which means that the protocol is usually used for read-only access.

On the other hand, it is very efficient for extracting from git repositories.

HTTPS, GitHub "smart HTTP", , " HTTP", (, ), , ' , git. HTTPS GitHub - , 443.

(, git HTTPS, , , , , .)

+5
0

The GIT protocol may be more efficient than HTTP for the kind of data transfer associated with repo cloning ... see this post

http://progit.org/2010/03/04/smart-http.html

0
source

Perhaps you are trying to clone in an environment that blocked git / 9418 port / port through firewalls, etc., but allowing web traffic.

0
source

All Articles