小编Man*_*uma的帖子

如何使用类似curl的命令获取远程仓库的最后一个提交ID?

我想获取远程 git repo 的最后一个提交ID .

该命令git rev-parse HEAD适用于本地克隆的git repo,但我希望通过CURL命令从原始的GIT repo中获取它.

例如:我想获取git URL的最后一个提交ID https://git.appfactorypreview.wso2.com/history/apiapp.git/.

怎么样?

git git-commit

48
推荐指数
7
解决办法
7万
查看次数

标签 统计

git ×1

git-commit ×1