skip to Main Content

I am just curious. In XCode I can create a github repo remotely without going to github.

How about doing the same thing in VS Code. Usually we will go to github to create the repo first and use the command lines given to push to github.

Can this be all done remotely in VS Code?

2

Answers


  1. Chosen as BEST ANSWER
    brew install gh
    gh auth login
    gh repo create flatclass --public
    

  2. Xcode is probably just using the GitHub API.

    https://docs.github.com/en/rest/reference/repos#create-an-organization-repository

    You could do the same thing, but even simpler would be to use the gh command line tool.

    https://cli.github.com/manual/gh_repo_create

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search