git
Create a reference
Changed onCreates a reference for your repository. You are unable to create new references for empty repositories, even if the commit SHA-1 hash used exists. Empty repositories are repositories without branches.
post/repos/{owner}/{repo}/git/refs
Request
- Base URL: http://HOSTNAME/api/v3
- URL: http://HOSTNAME/api/v3/repos/{owner}/{repo}/git/refs
- Auth: none declared
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.
Request body
Response
Response
Example response
{
"object": {
"sha": "7638417db6d59f3c431d3e1f261cc637155684cd"
}
}Changes
- info
added the non-success response with the status
- info