Git & GitHub Interview Question #1

What is Git?

Git Fundamentals, Repository, Working Tree, Staging, Commits & Branch Basics Junior Beginner

Quick Interview Answer

Git is a distributed version control system used to track changes in files, especially source code. Each developer can have a complete local repository containing project history, branches, and commits.

Detailed Explanation

Git is a distributed version control system used to track changes in files, especially source code. Each developer can have a complete local repository containing project history, branches, and commits.

Git allows developers to work independently, compare changes, restore earlier versions, create branches, and combine work safely. Git itself is not GitHub; it can be used locally or with many different remote hosting services.

Code Example

git --version