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.

asked a year ago39 views
1 Answer
0

Wrong question.

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions