Merging content of 2 directories on separate git branches and integrating branches later -
i have project hosted @ github. developing new set of features on shared topic branch named metamodel pushed github. @ same time have ongoing bug-fix work happening on master. plan integrate metamodel master @ point metamodel branch go away. both of these branches contain 2 directories contents want merge 1 single directory. @ point 2 directories divergent between 2 branches. furthermore, continue diverge more until branch integration.
what happen when go integrate branches if have merged 2 directories on each branch independently? we, project, have elected integrate branches means of rebasing in case has bearing here.
git doesn't care directories, or file names. cares content. , rather intelligent merging (it'll figure out when things moved or renamed).
so, basically, in answer question of "what happen when integrate these branches together", answer - "i don't know." haven't seen content. can tell git rather efficiently compare differences/similarities in content, , combine rather nicely. git gets stuck on show merge conflict, , you'll have resolve on case-by-case basis.
in situation, i'd careful rebasing, considering git history , changes starting become rather complex. rebase may work fine, i'd ready rollback in case gets messy.
since branches strong diverged , gone different routes , paths, may better off doing straight merge bring them together. way don't risk rewriting history in detrimental/unrecoverable way (remember rebasing form of rewriting history). plus, straight git merge produce new commit combined, (considering drastic differences have occurred), may valuable "fork-in-the-road" commit have, in case need rollback.
Comments
Post a Comment