How define the "target - hash" for newly created respository ? I try to do it default
But its shows error
{"type": "error", "error": {"message": "Bad request", "fields": {"target.hash": "Commit not found: default"}}}
Can you please guide me to do the same.
Thanks & Regards
Karthikraj M.
Hi @Karthikraj,
If you are using the following endpoint, the hash needs to be a commit hash or a branch name:
Is the newly created repo empty? If so, it will not be possible to create a new branch with this API endpoint, as there are no commits on the repo yet. The repo needs to have at least one commit in order to be able to create a new branch.
Just a heads up, I moved your post to a new question; it's best to create a new question if you need assistance, as an existing one can be difficult to follow and monitor if we try to troubleshoot multiple users' issues.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.