The code of any software project should be tracked in version control software. Git is the most widely-used, most popular, free and open-source version controlling tool, designed to handle anything from small projects to extremely large projects such as the Linux kernel.
To start using Git, run git init
in a terminal at the root of your project. See also Git’s documentation for tutorials on how to work with Git.