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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ