At my office we are not able to connect to github using git:// urls. For the regular repositories we just juse the https:// url and we're fine.
For gist there does not appear to be a way to access the gist via an https:// url.
BTW, I cannot seem to find any github documentation about gist ... I recall reading a page on github(?) about gist, but for the life of me I cannot find anything on the site itself that documents gist ... of course google is useless as gist show up everywhere ... but no documentation links:(
Thanks in advance.
Gists are actually Git repositories, which means that you can fork or clone any gist, even if you aren't the original author. You can also view a gist's full commit history, including diffs.
The difference is in the protocol used, as you probably guessed. Assuming you don't much care about the technical details between HTTPS and ssh, ssh has the advantage that you can use public key authentication, while you must use a username and password with HTTPS.
You can configure git to use https://
globally by running running git config --global url."https://".insteadOf git://
or by adding the following to ~/.gitconfig
:
[url "https://"]
insteadOf = git://
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With