:ref in the URL must be formatted as heads/<branch name> for branches and tags/<tag name> for tags. If the :ref doesn't match an existing ref, a 404 is returned.Authorization: Bearer ********************curl --location --request GET 'https://api.github.com/repos///git/ref/' \
--header 'Authorization: Bearer <token>'{
"node_id": "string",
"object": {
"sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
"type": "string",
"url": "http://example.com"
},
"ref": "string",
"url": "http://example.com"
}
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通

扫码加入交流群