How do you manage "open source" software programs?

I’m planning to open source my software program within my organization.

I’m hoping that people will develop new features or correct bugs and share their development with everyone else on a "Shared Drive".

How are all the different versions managed ?

I can see the whole thing getting out of control : ie too many versions causing confusion or taking up too much memory in the shared drive.