You have not merged. Your git merge add-on
command has been fast-forward, which means that it just moved the branch branch. This is because your add-on
branch has already converged from the tip of the master
branch, so no merging was required. If you run git log
, you will see that there will be no commit.
In principle, before the merger, it looked like this:
master / o---o---o---o add-on \ / o---o---o
and merging just moved the master
pointer to the end of the line:
master, add-on / o---o---o---o---o---o---o
If you want to force a merge, skip the --no-ff
flag, as in git merge --no-ff add-on
.
Upon further reflection, the merge
attribute will not do what you want. This applies only to file-level merging, which means that both sides of the merge have changes to a specific file. If only one side has changes (this is your case), the file level merge is not performed, and the changed file is accepted unconditionally.
It is best to use git merge --no-ff --no-commit add-on
to create a merge, but not actually commit. Now you can check the results and tune them to your satisfaction before you merge. If you want to accept the changes based on each column, you can do something like git reset
to reset the index, and then git add -p
to execute each console.
source share