search

Home  >  Q&A  >  body text

Can a remote repository be automatically created during git push?

Every time you create a new project on the development machine, then go to the git server to create a new project, and then associate it through git remote add. Otherwise, if you add a remote warehouse casually, an error will be reported when pushing:

fatal: Could not read from remote repository.

Is there any way to let the git server automatically create a warehouse?

漂亮男人漂亮男人2794 days ago505

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:35:27

    This function involves calling github’s API.
    Here is an article that can help you.
    Create a Github Repo from the Command Line

    In addition, you can refer to the documentation about github api here
    https://developer.github.com/v3/

    Good Luck

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:35:27

    You can download a sourcetree and create a new branch directly in the pop-up box when pushing.

    reply
    0
  • Cancelreply