Git branch conflict

Now there is a test.txt in the master branch master and branch branch01, and now the content in them is the same (because of the state of just establishing the branch)

1. Now change the test.txt in branch 01 (add a line of content)
Insert picture description here
2. Move the branch to master, the change in branch 01 does not affect the master branch
Insert picture description here
3. Now the main branch adds information
Insert picture description here
4. Incorporate branch 01 into the master The branch
shows the conflict, the two branches are different in the second line.
Insert picture description here
At this time, the file is changed like this.
Insert picture description here
To resolve the conflict, you need to make a decision to delete which part of the conflict, and then submit
it. Now only keep the branch.
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/WA_MC/article/details/114805051