Assume we have a file common_ancestor
(master
)
ok
ok
ok
ok
ok
From there, we change and commit master
to
ok
change not ok (looking back)
ok
ok
ok
latest change
ok
Now we have a better idea, checkout common_ancestor
and change it to
ok
ok
ok
This is a really good change
ok
ok
and commit in a new branch dev
. As I need some developments from master
, I want to merge dev
into master
but I want to decide for every change whether to keep or not. I tried
git checkout master
git merge dev --no-ff --no-commit
But I did not get what I expected
. What I am looking for is something like:
ok
<<<<HEAD
change not ok (looking back)
====
>>>> HASH
ok
ok
<<<<HEAD
====
This is a really good change
>>>> HASH
ok
<<<<HEAD
latest change
====
>>>> HASH
where conflict markers are visible (see here).
Edit: What I have seen, git merge dev --no-ff --no-commit
does not highlight the changes - @VonC explained why there are no conflict markers visible (because there are no conflicts!).