Git subtree
command also has a merge
subcommand. It follows the syntax:
> git subtree merge -P <prefix> <commit>
So in your case, running from within repo A you could do
> git subtree merge -P foo split-master
That would reintegrate the changes made in repo B into the subtree in repo A.
There are some additional options, check the docs.