Merge folders and subfolders in macOS
Solution 1:
Open a Terminal, and use ditto
:
ditto [source] [destination]
For example:
$ cd ~
$ mkdir A/
$ mkdir A/1
$ mkdir A/2
$ mkdir A/3
$ touch A/1/1.txt
$ touch A/2/2.txt
$ mkdir B
$ mkdir B/1
$ mkdir B/3
$ touch B/1/x.txt
$ touch B/3/z.txt
$ ditto A B
$ open .
Solution 2:
From macOS documentation.
Merge two folders with the same name: If you have two folders with identical names at two different locations, you can merge them into a single folder.
Press and hold the Option key, then drag one folder to the location that contains a folder with the same name. In the dialog that appears, click Merge.
The Merge option appears only if one of the folders contains items that are not in the other folder. If the folders contain different versions of identically named files, the only options are Stop or Replace.
https://support.apple.com/kb/PH25633