Can a remote repository be automatically created during git push?
漂亮男人
漂亮男人 2017-05-02 09:33:27
0
2
512

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?

漂亮男人
漂亮男人

reply all(2)
过去多啦不再A梦

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

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template