Merging 2 branches together in GIT

I’ve only just started to use GIT and think its wonderful, however I’m a little confused over what the merge command does.

Let us say we have a working project in the branch “A”.

I go home and make changes to this branch and save it as “B”.
Another programmer makes changes to “A” and saves it as “C”.

Is there a way to merge the two branches “B” and “C” together, then commit the changes as a new branch, say “D”?

Or am missing the point of ‘merge’?

3 Answers
3

Leave a Comment