Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does GitHub support git:// protocol for pull?

Tags:

git

github

pull

Is it possible to use such configuration? Or there are no advatages between ssh:// and git://?

like image 272
Viacheslav Kondratiuk Avatar asked Oct 11 '13 11:10

Viacheslav Kondratiuk


People also ask

What protocol does GitHub use?

Git can use four distinct protocols to transfer data: Local, HTTP, Secure Shell (SSH) and Git.

Is it better to use ssh or HTTPS GitHub?

While SSH is usually considered more secure, for basic usage of Github, HTTPS authentication with a password is acceptable enough. In fact, Github themselves defaults to and recommends most people use HTTPS.


2 Answers

Yes, it does. However, the URL bar in github web page no loner have git protocol for copying the URL to clipboard. You have to replace https:// with git:// by yourself.

Also, git protocol use port 9418. Make sure you can use this port.

git protocol is not encrypted, but it is faster than https.

git protocol is read-only in github. You cannot push to it via git protocol.

like image 64
linquize Avatar answered Sep 21 '22 09:09

linquize


As of writing this answer, GitHub does support the git:// protocol as read-only. It is the only supported protocol that is not encrypted or secured with keyed access.

As of March 15, 2022, GitHub will no longer support the git:// protocol. As detailed in a blog post, there will be brownout periods leading up to the permanent removal of support for the git:// protocol.

Source.   Archive of source.

like image 41
TunaLobster Avatar answered Sep 21 '22 09:09

TunaLobster