When I create a new repo using
gh repo create My_Repo
I am prompted with the following questions
? Visibility
? Would you like to add a .gitignore? (y/N)
? Would you like to add a license? (y/N)
? This will add an "origin" git remote to your local repository. Continue? (Y/n)
I would like to manage all the 4 questions in a single command.
I tried the following
gh repo create My_Repo --public -g No -l No
? This will create the "My_Repo" repository on GitHub. Continue? (Y/n)
It gives me the following output
HTTP 422: Repository creation failed. (https://api.github.com/user/repos)
gitignore_template is an unknown gitignore template.
license_template is an unknown license template.
I tried gh repo create My_Repo --public -g None -l None
it also results in the same error.
Also I would like to bypass the question
? This will create the "My_Repo" repository on GitHub. Continue? (Y/n)
How do I do that?
I am looking to give the following answers in a single command
? Visibility --public
? Would you like to add a .gitignore? ====> No
? Would you like to add a license? ====> No
? This will add an "origin" git remote to your local repository. Continue? ====> Yes
Also, is it possible to include the following in a single command?
gitignore = Python | license = None | add to "origin" = Yes
gitignore = None | license = MIT License | add to "origin" = Yes