Version control is an important part of software development, all commercial software development projects use some form of version control, these days it’s likely to be git but there are other alternatives. Even if you are working on your own small personal projects, get into the habit of committing your code changes frequently and pushing to a remote repo.
Why would you bother doing this even for personal projects?
- it gets you used to using a tool like git, before using it on a larger project
- you can checkout any previous commit if something breaks and you need to roll back changes
- if you’re pushing to a remote repo you also have a remote backup