Idea submits code to git / code cloud warehouse for the first time

I’m too lazy. I’ve never tried to submit code to my own warehouse. Today, I’m stimulated to submit a demo
for specific settings, please refer to:

https://blog.csdn.net/ilv_ xj/article/details/82662465

When I pushed the code, I reported “push rejected”
Baidu gave me a reliable solution, which is outputting git pull origin master — allow unrelated histories on the idea console (ALT + F12)

If you haven’t saved your git account and password before, windows will jump out of a similar login box, enter your git account and password, and then you will see the figure below to show that you can go to push. It’s successful

Read More: