search

Home  >  Q&A  >  body text

How does webstorm submit a local project to an existing repository on github (the project was created without checking out from github)

How does webstorm submit a local project to an existing repository on github (the project was created without checking out from github)

高洛峰高洛峰2788 days ago735

reply all(3)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-02 09:47:31

    The project was created without checkout from github

    This question. . It seems to be the same as checkout 无关,,你想说的应该是 clone. . .

    If you don’t have a clone 也没关系。。如果你本地没有 .git folder, and you don’t plan to mess with the command line, then this is it:

    You can also use the shortcut key on Mac OS ctrl + v to open the shortcut menu, and then select Create as well:

    The next step is to add the remote first, and then pull

    Then handle the possible conflicts and submit it.

    Same steps as mentioned above, except you don’t need to use the command line

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-02 09:47:31

    First configure git in webstorm, or you can submit it directly in the project folder. The premise is that you have to have your own warehouse on github. Register an account first, generate the key with local git, and then add the key on github. You can use Baidu for details. With permission, you can create a project and submit the project to have its own warehouse

    reply
    0
  • 怪我咯

    怪我咯2017-05-02 09:47:31

    git init
    git add .
    git commit -am 'init'
    git remote add origin https://github.com/xxx/xxx.git
    git pull origin master --allow-unrelated-histories

    If there is a conflict, resolve it before submitting.

    reply
    0
  • Cancelreply