如何通过SSH协议克隆Github Gist? [英] How to clone a Github Gist via SSH protocol?

查看:135
本文介绍了如何通过SSH协议克隆Github Gist?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Github确实希望我们使用HTTPS协议来使用Gist,例如,他们只在Gist页面上列出HTTPS网址 - 例如 https://gist.github.com/donatello/5834862

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

是否可以使用SSH协议克隆Gist?

Is it possible to clone a Gist using SSH protocol?

推荐答案

是的,这是可能的:

git clone git@github.com:5834862.git

当然,请用您自己的Gist ID代替。

Just replace with your own Gist ID of course.

这篇关于如何通过SSH协议克隆Github Gist?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆