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
Post a Comment