You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.