The conflict file must be changed on the branch Aafter the common pedigree with the branch B. And you can double check on git annotateand git logagain.
1. List the commits that modified the conflict file in branch A and branch B separately:
git annotate filename A
git annotate filename B
. git annotate () ().
, :
$ git annotate filename A
commit A1
commit A2
commit common
commit A3
commit A4
$ git annotate filename B
commit B1
commit B2
commit B3
commit common
commit B4
, commit ancestry commit common commit A3 A4 A; B commit B4.
2. git ,
, :
git log --oneline --decorate --graph --all -- filename
:
* commit A4 (branch A)
* commit A3
| * commit B4 (branch B)
* | commit Common
| \
* | commit A2
* | commit A1
| * commit B3
| * commit B2
| * commit B1
| |
… …