Github allows you to clone a public repository in one of two ways. The two methods toggle on the download section of the repository home page:
https://github.com/scrooloose/nerdtree.git
git://github.com/scrooloose/nerdtree.git
The git clone command works with both so why are there two methods available? Can you explain why you would use one over the other?
The git protocol has the following key problems:
On the other hand, it’s very efficient for fetching from git repositories.
As for HTTPS, GitHub now supports the “smart HTTP” protocol, which means that many of the problems with the “dumb HTTP” protocol that you’ll read about (e.g. inefficiency) no longer really apply, although it still won’t be as efficient as the git protocol. The chief advantage of using HTTPS to talk to GitHub repositories is it is very unlikely that corporate firewalls will block access to port 443.
(Incidentally, the scope of your question is only about access to public repositories with the git protocol and HTTPS, but I think it’s worth pointing out that there are many other considerations for the choice of protocol in the case where you need to authenticate yourself in order to push to a repository.)