I'm trying to create remote repository using GitHub CLI and I can not find how to specify a particular gitignore file with argument --gitignore
, say, github/gitignore/C++.gitignore
. There is an error HTTP 422: Repository creation failed. (https://api.github.com/user/repos) gitignore_template is an unknown gitignore template.
Unsuccessfully have been trying to find an example on internet and stackoverflow also.