-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
Description
Describe the bug
When using gh repo create with readme creation enabled, main branch will be automatically created on repository creation. However, if you clone repository on the end of the command, main branch does not exist on local branches, which is not expected behavior.
Steps to reproduce the behavior
- Run
gh repo create - Select
Create a new repository on GitHub from scratch - Type repository name, owner, description and visibility.
- Answer "y" to
Would you like to add a README file? - Answer "n" to
Would you like to add a .gitignore? - Answer "n" to
Would you like to add a license? - Answer "y" to
This will create (repository name) as a public repository on GitHub. Continue? - Answer "y" to
Clone the new repository locally?
Expected vs actual behavior
Expected
Main branch with README file should exist on local.
Actual Behavior
No branch exist on local.
Logs
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedContributions welcomeContributions welcomep3Affects a small number of users or is largely cosmeticAffects a small number of users or is largely cosmetic
