【发布时间】:2013-10-04 09:34:54
【问题描述】:
如何调用 URL https://git.appfactorypreview.wso2.com/history/apiapp.git/,如文档 http://developer.github.com/v3/repos/commits/ 中所示?我的意思是,我必须给出的 CURL 命令是什么?
【问题讨论】:
标签: git curl git-commit
如何调用 URL https://git.appfactorypreview.wso2.com/history/apiapp.git/,如文档 http://developer.github.com/v3/repos/commits/ 中所示?我的意思是,我必须给出的 CURL 命令是什么?
【问题讨论】:
标签: git curl git-commit
github REST api 不是 用于 git,它仅用于 github.com。 git 是一个分布式版本控制系统,而 github.com 是一个源代码托管服务。
您提供的 repo url 不是来自 github。所以 github API 在这里不起作用。您可以做的是在一个目录中克隆 repo 并调用 git log -n 1
【讨论】: