When you pull the code and find that many duplicates have been pulled down, you don’t want to submit them again.

Background: commit but not yet push successfully

First switch to the main branch to pull the code. After confirming that it is the latest code, switch back to the branch that needs to be developed. Enter git log to view the commit instructions. Enter git reset --soft HEAD^  to undo this commit and submit the initialization code. Enter  git status. At this time, you will be prompted that no code has been pulled. Just pull the code

Guess you like

Origin blog.csdn.net/m0_71735156/article/details/132663326