How to push a new branch non-existing on the remote server without --set-upstream?

后端 未结 2 1954
离开以前
离开以前 2021-01-06 10:39

The scenario is that I have no repos on the remote server, just an account. Then, I run locally the following commands, where x is the user name and y is t

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 11:18

    That is how i push to gerrit instance without adding remote

    git push http://localhost:8080/scm *:*
    fatal: remote error: Git repository not found
    

    But the project must exist already

提交回复
热议问题