Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
Some advantages for using Git in teamwork.
Github is a web-based hosting service for version control using Git. It offers all of the distributed version control and source code management functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project.
It is helpful to store, manage and even online-share files between coworkers without saving a large number of copies in your PC.
There are four main parts in this process: workspace, staging, Local Repository and Remote Repository.
Workspace is the working directory in your local PC, in which you save files. And if you use the command
$ git add filename
the changes will be submitted to staging. Then you use the command
$ git commit -m "comments"
in order to add comments of modifications to Local repository.