Having a development team work on your game at once?

Lets say your creating a huge game and you need a team of developers to create it with you. How can that be done? For example, on UE4 you can work on it alone but how exactly do you make it so everyone can work on it at once like big game developers using the engine.