The best way is to merge the files first. Use e.g. osmconvert for that.
https://wiki.openstreetmap.org/wiki/Osmconvert