Create new branch when commit id is not available

0

Hello,

I am interested in creating a new branch in newly created repository programatically (using CLI/boto3/API call).

Alas, I cannot do that because initial commit id is required, but there is none available at that point of time.

On the other hand, I can do the same action using console and all I need to specify is a branch to point to. In my case it is default branch “main” and that’s all. So, if I can do it from console, then it should be possible to do programatically.

Could you please advise how I can do it without initial commit id or maybe there are any workarounds available?

Thank you.

已提問 3 年前檢視次數 253 次
1 個回答
0

Wrong question.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南