当我使用创建新仓库时
gh repo create My_Repo
系统提示我以下问题
? 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)
我想在一个命令中管理所有 4 个问题。
我尝试了以下
gh repo create My_Repo --public -g No -l No
? This will create the "My_Repo" repository on GitHub. Continue? (Y/n)
它给了我以下输出
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.
我试过gh repo create My_Repo --public -g None -l None
它也导致同样的错误。
我也想绕过这个问题
? This will create the "My_Repo" repository on GitHub. Continue? (Y/n)
我怎么做?
我希望在一个命令中给出以下答案
? 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
另外,是否可以在单个命令中包含以下内容?
gitignore = Python | license = None | add to "origin" = Yes
gitignore = None | license = MIT License | add to "origin" = Yes