this flattening script clones the repos and flattens them out to be merged into one, discarding history