Git is a distributed version control system.

Why we should use git ?

When the project is access by multiple developers and there is a need to maintain the code of the project between the developers, git comes into picture.

Git helps all developers to maintain their version of code in their local system and upload their piece of code to the project folder as and when needed.

This helps version control system of the project. And if there is any conflict , either we can resolve /revert the code.

Git Wiki