How to clone a Github Gist via SSH protocol?

donatello picture donatello · Aug 2, 2013 · Viewed 48.4k times · Source

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?

Answer

donatello picture donatello · Aug 2, 2013

Yes, it is possible:

git clone [email protected]:5834862.git

Just replace with your own Gist ID of course.