Git as Version Control
Question
What is
git?
Short interview answer
Git is a distributed version control system that records a project’s history as commits and lets developers work in local branches, then exchange and integrate changes with other repositories.
Detailed answer
Git records snapshots of the project as commits connected in a history. A branch is a movable reference to a line of commits, so a developer can create a feature branch, commit work locally, and later share it with a remote repository. Because the repository is distributed, a clone is not merely a working copy: it contains history and can create commits without a central server being available. Collaboration still needs an agreed workflow for review, integration, and protecting shared branches.