Merge all the branches.