在我的办公室,我们无法使用git:// urls连接到github.对于常规存储库,我们只是juse https:// url,我们很好.
对于要点,似乎没有办法通过https:// url访问要点.
顺便说一句,我似乎无法找到关于gist的任何github文档......我记得在github(?)上读到一个关于gist的页面,但对于我的生活,我在网站上找不到任何文档要点...当然google是无用的,因为gist到处出现......但没有文档链接:(
提前致谢.
fny*_*fny 15
您可以https://
通过运行running git config --global url."https://".insteadOf git://
或将以下内容添加到全局来配置git以全局使用~/.gitconfig
:
[url "https://"]
insteadOf = git://
Run Code Online (Sandbox Code Playgroud)
我只找到一种通过 http 获取原始文件的方法:
GET http://gist.github.com/raw/:gist_id/:filename
Run Code Online (Sandbox Code Playgroud)
在github的gist API页面上找到:
http://develop.github.com/p/gist.html(存档副本)