Version control systems are a category of software tools that helps record changes to files by keeping a track of modifications done to the code.
Use of Version Control System: A repository: It can be thought as a database of changes. It contains all the edits and historical versions (snapshots) of the project.
Simply put, Git is a version control system that lets you manage and keep track of your source code history.
GitHub is a cloud-based hosting service that lets you manage Git repositories. If you have open-source projects that use Git, then GitHub is designed to help you better manage them.