Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clone a Github Gist via SSH protocol?

Tags:

git

github

gist

Github really seems to want us to use the HTTPS protocol to use Gists, for example, they only list the HTTPS url on a Gist page - e.g. https://gist.github.com/donatello/5834862

Is it possible to clone a Gist using SSH protocol?

like image 562
donatello Avatar asked Aug 02 '13 14:08

donatello


People also ask

How do you clone a gist file?

With the URL in your clipboard, open the Gist Dev menu and select the Clone a Gist Repository item. You will then be presented with an input field where you can paste the URL copied from GitHub. Click the Clone button or press enter, and the repository will be cloned to your computer.


1 Answers

Yes, it is possible:

git clone [email protected]:5834862.git 

Just replace with your own Gist ID of course.

like image 78
donatello Avatar answered Sep 27 '22 20:09

donatello