I previously shared a means to merge models with Python. The third method I listed (the subtle one) is closest to your goal.
It’s unclear to me from your question if the approved geometry is a totality of all the versions or selective. Elements. Assuming it is multiple whole commits, that tutorial will be enough.
The significant step worth repeating is to recreate the closure table of all the referenced objects.