git
Update a reference
patch/repos/{owner}/{repo}/git/refs/{ref}
Path parameters
ownerstring required
The account owner of the repository. The name is not case sensitive.
repostring required
The name of the repository without the .git extension. The name is not case sensitive.
refstring required
The name of the reference to update (for example, heads/featureA). Can be a branch name (heads/BRANCH_NAME) or tag name (tags/TAG_NAME). For more information, see "Git References" in the Git documentation.
Request body
Response
Response
Example response
{
"object": {
"sha": "7638417db6d59f3c431d3e1f261cc637155684cd"
}
}