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.

demandé il y a 2 ans237 vues
1 réponse
0

Wrong question.

répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions