B You need to rebase first and then commit. The purpose of rebase is to make your changes based on the modification of file A.
The root cause is that conflicts will occur in this case, and git cannot determine which version is the final version. If you only use merge, it will directly think that B has changed the A file back.
B You need to rebase first and then commit. The purpose of rebase is to make your changes based on the modification of file A.
The root cause is that conflicts will occur in this case, and git cannot determine which version is the final version. If you only use merge, it will directly think that B has changed the A file back.