Results of Merging Two Different Tracking Branches?

301 Views Asked by At

Imagine I have two branches, one of which has been set up to track one remote-tracking branch and another which has similarly been set up to track a different remote-tracking branch. Now, let's say I merge these two branches together into a single branch. How would such a merger affect the resulting branch's connectivity? Would the resulting branch still be able to track both of the remote-tracking branches which were tracked by its un-merged predecessors, or would one remote-tracking branch no longer be tracked by my new, merged branch?

1

There are 1 best solutions below

8
On

They get merged. Nothing else happens. Tracking isn't affected by git merge. If you made a new branch, not tracking anything, and merged both into it, it still won't be tracking anything. If you merged one branch into another, the branch you merged into will still be tracking the same thing it was before.