glab icon indicating copy to clipboard operation
glab copied to clipboard

Modify default branch of remote repo after creation

Open awa5114 opened this issue 3 years ago • 2 comments

The --defaultBranch parameter of glab repo create allows for specification of the default branch upon project creation.

I would like to actually modify the default branch of my remote repo after creation. This is important, for example, if I accidentally push a fresh local repo with a branch name of master.

Is there a way to do this through the glab CLI?

awa5114 avatar Nov 25 '21 14:11 awa5114

There is not a way to do it right now. But this could be added by a new repo update command.

On Thu, Nov 25, 2021, 16:41 Amine Aboufirass @.***> wrote:

The --defaultBranch parameter of glab repo create allows for specification of the default branch upon project creation.

I would like to actually modify the default branch of my remote repo after creation. This is important, for example, if I accidentally push a fresh local repo with a branch name of master.

Is there a way to do this through the glab CLI?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/profclems/glab/issues/914, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRIDTPB6WCYVKTC7LQDHK3UNZDLNANCNFSM5IYWRG5A .

zemzale avatar Nov 26 '21 15:11 zemzale

This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.

clemsbot avatar Dec 27 '21 02:12 clemsbot