【发布时间】:2013-10-11 03:57:19
【问题描述】:
我想获取 remote git repo 的最后一次提交 ID。
git rev-parse HEAD 命令适用于本地克隆的 git 存储库,但我想通过 CURL 命令左右从原始 GIT 存储库中获取它。
例如:我想获取 git URL https://git.appfactorypreview.wso2.com/history/apiapp.git/ 的最后一次提交 ID。
怎么做?
【问题讨论】:
标签: git git-commit