Open dorawyy opened 6 years ago
ms1
and ms2
both edited same line of file test24-content-conflict
, committed;ms1
edited file test24-content-conflict
line 2, commit;git checkout ms1
# edit file test24-content-conflict, line 2
git add test24-content-conflict
git commit -m "ms1: edit file test24-content-conflict, line2"
(ms1
edit file test24-content-conflict, line 2)
(the project status becomes:)
ms2
also edited file test24-content-conflict
line X, commit;git checkout ms2
# edit file test24-content-conflict, line 2
git add test24-content-conflict
git commit -m "ms2: edit file test24-content-conflict, line2"
(ms2
edit file test24-content-conflict, line 2)
(the project status becomes:)
ms2
, merge with ms1
)resolve
merge strategygit checkout ms2
git merge ms1 -s resolve
ms1
versiongit add test24-content-conflict
git commit
# then, auto commit message created for the merge
git checkout ms2
git reset --hard head~
recursive
merge strategy (by default for merging two branches)octopus
merge strategyours
merge strategysubtree
merge strategy
Sumamry:
Branches used in the series of tests:
Files used in the series of tests:
Preparation
ms1
andms2
(content of
test24-content-conflict
)(content of
test24-delete-modify-conflict
)(content of
test24-ms1
andtest24-ms2
)references