我可以通过标记v0.94.9获得远程存储库的散列
git ls-remote https://github.com/status-im/status-go v0.94.9如何获取此标记的提交消息?我不想克隆这个存储库,只想获得它的提交消息,用于标记v0.94.9。
发布于 2022-03-01 08:23:20
提供一个仅使用GitHub (使用GitHub API)的解决方案:
#!/bin/bash
url=$(curl https://api.github.com/repos/status-im/status-go/git/ref/tags/v0.94.9 | jq -r .object.url)
curl "$url" | jq -r .messageTODO:用智能HTTP(S)协议回答
#!/bin/bash
commit=$(curl -s --output - "https://github.com/status-im/status-go/info/refs?service=git-upload-pack" | grep -a "v0.94.9" | awk '{print $1}' | cut -b 5- -)
# need help for pack-protocol implementation with curlhttps://stackoverflow.com/questions/71305356
复制相似问题