How does webstorm submit a local project to an existing repository on github (the project was created without checking out from github)
擁有18年軟件開發(fā)和IT教學(xué)經(jīng)驗。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項目經(jīng)理、高級軟件工程師等職務(wù)。 網(wǎng)絡(luò)人氣名人講師,...
The project was created without checkout from github
This question. . It seems to be the same as checkout
無關(guān),,你想說的應(yīng)該是 clone
. . .
If you don’t have a clone
也沒關(guān)系。。如果你本地沒有 .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
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
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.