Why Use Version Control?

Beyond its capability to track changes in your project, one of the most compelling reasons to use version control is for collaboration. As you will see in the next section, the way version control is set up makes it ideal for working in small and large teams. Version control also helps you write code in a more focused manner. As with functions, each check-in should have a specific purpose. When working within a version control system, you should make only changes that relate to the current check-in, which helps you stay focused. Finally, version control enables you to experiment without fear of ruining everything. The capability to roll back means that even if you do ruin everything, you can quickly get back to a good ...

Get Learning to Program now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.