0

を使用して新しいレポを作成するとき

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 つの質問すべてを 1 つのコマンドで管理したいと考えています。

私は次のことを試しました

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
4

1 に答える 1