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
Copy and paste the created project https or ssh on HUAWEI CLOUD
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
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