How to merge a branch into another branch in Git while maintaing the old lines? -


when use merge command, conflicting lines marked , can go , choose master or merged version editing file in editor , 'git add '.

what want merge , have comment (similar comment when 2 files conflict), this:

<<<<<<< head   old line in old file in master branch =======   new line in merged branch >>>>>>>   

i want above comment if there no conflict. helps me manually start editing , decide merged , discarded.

basically need have control on merge line line after merged branch.

i need have control on merge line line after merged branch.

you try , have control during merge, not after.
after, is diff, in order check has been merged.

(that op ehsan mentions in comments:

i solved problem merging first , using diff tool see changes against older version

)

if there conflicts, have opportunity decide merged (merge markers)

but if there no conflicts, "comments" result of merge (the line added/removed or modified)


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -