The cause of the conflict generated during the first merge has been resolved locally.
If the code pushed by others does not change this part,
Merging again will go smoothly.
Git will handle it automatically, so don't worry too much.
If conflicts always occur during merge, it means that the code in the conflicting part is extremely unstable.
Developers need to communicate with each other to solve it completely, or use some methods to bypass it.
This problem should be solved in two ways:
The first one: Only when the version difference is too large, you must pull + merge before you can push. But after you merge, if the version difference is not big, you can push.
Second: Everyone should keep a branch of their own. First push to your own branch, and then merge from the server to the master.
The cause of the conflict generated during the first merge has been resolved locally. If the code pushed by others does not change this part, Merging again will go smoothly. Git will handle it automatically, so don't worry too much.
If conflicts always occur during merge, it means that the code in the conflicting part is extremely unstable. Developers need to communicate with each other to solve it completely, or use some methods to bypass it.
After merging, it will be a new version. After pushing finds other versions, continue to merge another version.
You can push it up one day.
This problem should be solved in two ways: The first one: Only when the version difference is too large, you must pull + merge before you can push. But after you merge, if the version difference is not big, you can push. Second: Everyone should keep a branch of their own. First push to your own branch, and then merge from the server to the master.
A and B can discuss and reach an agreement, and they will only rebase but not merge. In this way, history looks better, with one line and no chaos.
If such a problem occurs, it means that the code coupling between A and B is too much and needs to be re-divided
Since there is a conflict, just merge. Keep merging until there is no conflict between him and you, then you can push it up