Git (master | MERGING)

recently, there was a problem with my colleague"s code, but I don"t know how to solve it. Once I encountered it before, the code fell back, and then the problem still occurred. Ask for help
problem description: git pull (master | MERGING)
clipboard.png

clipboard.png

hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: "git pull ...") before pushing again.
hint: See the "Note about fast-forwards" in "git push --help" for details

failed to push some refs to "http://***********.git"

then git reset-hard head and then git pull has the same problem again. Remember that the previous result was a fallback, which seemed to be fine, but not now.

which god is passing by, explain

May.27,2022

the current branch lags behind. Git pull first pulls the latest code. There may be conflicts. After the conflict is resolved, you can switch to another branch only after git add,git commit,git push and submission.

there are two conflicts here. Resolve the conflicts in the specific file, and then execute
git add-A

.

git commit-m 'description

git push

Menu