curl --location --request POST 'https://api.github.com/repos///git/refs' \
--header 'Content-Type: application/json' \
--data-raw '{
"ref": "refs/heads/featureA",
"sha": "aa218f56b14c9653891f9e74264a383fa43fefbd"
}'
{
"node_id": "string",
"object": {
"sha": "7638417db6d59f3c431d3e1f261cc637155684cd",
"type": "string",
"url": "http://example.com"
},
"ref": "string",
"url": "http://example.com"
}
Authorization: Bearer ********************
refs/heads/master
). If it doesn't start with 'refs' and have at least two slashes, it will be rejected.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通