Error when submitting code to Git repository

In the development process, some common problems can always be remembered immediately, but sometimes some are not difficult, but the errors caused by habit are always difficult to find. When uploading the code from the warehouse, the following error occurred when
insert image description here
committing: I found a lot of methods, but it didn't work. After careful recall, I found that it turned out that before this, I pulled the early code test, and the code was not restored to the latest version. , so the HEAD of the submitted code is incorrect.
Solution:
restore the code to the latest version of the warehouse!

Guess you like

Origin blog.csdn.net/fzt12138/article/details/120367276