Gists 给我们提供了一种不需要创建一个完整的仓库,使小段代码也可以工作的简单方式。
Gist的URL后加上 .pibb
,可以得到更适合嵌入到其他网站的HTML版本。
Gists还可以像任何标准仓库一样被克隆。
$ git clone https://gist.github.com/tiimgreen/10545817
This means you can also modify and update Gists:
$ git commit
$ Username for "https://gist.github.com":
$ Password for "https://tiimgreen@gist.github.com":