How to create repository in github through github API?

后端 未结 5 829
别跟我提以往
别跟我提以往 2020-12-03 02:17

I am trying to use github api to create repositories under a particular organization. I was looking at this site which talks about how to create repositories under a particu

5条回答
  •  情书的邮戳
    2020-12-03 02:27

    There is a new solution official from cli.github.com. The other answers are deprecated.

    First Install GitHub CLI. Run:

    brew install github/gh/gh
    

    Then to create a repository with a specific name (default: private) Enter the following command:

    gh repo create my-project
    

    Here is the official documentation link to create a repo.

提交回复
热议问题