Version control is a vital part of any code development. This enables simple ways to track changes as well as enables the collaboration between developers.
There are multiple version control (CVS) systems available, this includes but not limited to:
Although it is not a requirement, it is strongly recommended to host the source code in the repository.
Some of the above providers have free tier.
Having the source code stored on the cloud server not only simplifies the access, sharing, version history but also enables additional levels of security, backup options, etc.