Adopt good branching strategy
The team need to collaborate and share code in a consistent manner; The distributed version control systems (like Git…) will provide flexibility on how team members use version control to share and manage code.
Generally, the branches are created from main trunk for feature developments, enhancements, hotfixes, release, iteration and user-stories; these branches will help to isolate the risk of the changes introduced by the work done by teams and yet eventually, they need to merge all their efforts together into one product.
The development workflow process will usually include at least the environment: Development, Stable and Production.
Note: Don’t forget to delete feature branches once they were merged into stable branch. This will keep your repository clean.