curl --location --request POST 'https://api.github.com/repos///git/trees' \
--header 'Content-Type: application/json' \
--data-raw '{
"base_tree": "9fb037999f264ba9a7fc6274d15fa3ae2ab98312",
"tree": [
{
"mode": "100644",
"path": "file.rb",
"sha": "44b4fc6d56897b048c772eb4087f854f46256132",
"type": "blob"
}
]
}'
{
"sha": "string",
"tree": [
{
"mode": "100644",
"path": "file.rb",
"properties": {
"mode": {
"type": "string"
},
"path": {
"type": "string"
},
"sha": {
"type": "string"
},
"size": {
"type": "integer"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"path",
"mode",
"type",
"sha",
"url",
"size"
],
"sha": "44b4fc6d56897b048c772eb4087f854f46256132",
"size": 30,
"type": "blob",
"url": "https://api.github.com/repos/octocat/Hello-World/git/blobs/44b4fc6d56897b048c772eb4087f854f46256132"
}
],
"truncated": true,
"url": "http://example.com"
}