How does webstorm submit a local project to an existing repository on github (the project was created without checking out from github)
过去多啦不再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
巴扎黑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
怪我咯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.