我如何使用这个 github 网址?
我刚刚在 gist.github 上上传了我正在处理的一个小编码项目,因为这似乎是一次上传几个类的快速方法。
我想将某人链接到我的“要点”,在角落里写着:
公共克隆 URL:git://gist.github.com/824082.git
私有克隆 URL:[email protected]:824082.git
所以我想公开克隆网址,但显然它看起来很奇怪。点击它后,我会看到这个弹出窗口:
将此克隆 URL 提供给任何人。
git克隆git://gist.github.com/824082.git gist-824082
我很困惑,这到底是如何工作的?
I just uploaded a little coding project I was working on at gist.github because it seemed like a nice fast way of uploading a couple of classes at once.
I want to link someone to my "gist" and in the corner it says:
Public Clone URL: git://gist.github.com/824082.git
Private Clone URL: [email protected]:824082.git
So figure I want the public clone url but obviously it looked strange. Upon clicking on it I get this popup:
Give this clone URL to anyone.
git clone git://gist.github.com/824082.git gist-824082
I'm flummoxed, how is this supposed to work exactly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您编写的每个要点实际上都包含在 Github 上它自己的 git 存储库中。因此,它们自然可以像 github 上的其他 git 存储库一样被克隆和更新。只要尝试一下,您就会在克隆的 git 存储库中找到您的文件。
当链接到某个要点只是为了向其他人展示时,您应该只使用在浏览器地址栏中看到的 URL。
Every gist you write is actually contained in it's own git repository on Github. So they can naturally be cloned, and updated the same as every other git repository on github. Just try it, you will find your files inside the cloned git repo.
When linking to a gist to just show it to others, you should just use the URL you see in your browser's address bar.