Use IntelliJ IDEA to create a Spring Boot project and upload it to Huawei Cloud

1. I used IDEA for a while before, and then I used STS again. I came back to use IDEA and found that I wiped it and forgot it all! Hereby arrange! ! !

First of all: use IDEA to create a springboot project locally, which is also a maven project. The reference is as follows, which is very clear;

https://baijiahao.baidu.com/s?id=1655124607046496732&wfr=spider&for=pc

Then: associate the created local project with git (my side is on Huawei Cloud), as shown below:

1. As shown in the figure, there is no git under vcs, follow the figure below to create git repository, it is OK

Insert picture description here

 Copy and paste the created project https or ssh on HUAWEI CLOUD

Insert picture description here

Now the local project is associated with git, and finally the code of the pull and push project,

I reported an error when I pushed: an error about git submission code: Push to origin/master was rejected

Reference: https://blog.csdn.net/mygodit/article/details/84869504?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu- 1

If it still reports an error: use git push -u origin master -f to force push;

At this point, a series of processes have been completed.

Command: git push origin dev:dev push local branch to remote branch

          git pull origin master:localbranch pulls the remote branch to the local

Command format: git pull origin is the fixed part followed by the remote branch name, and the colon followed by the local branch name

Supplement: 2020/06/29   

Associate local projects with remote git

https://www.cnblogs.com/OrgCheng/p/11765373.html

Guess you like

Origin blog.csdn.net/zhangleiyes123/article/details/105535003