← Back to Articles         
What is Git?

What is Git?

Published on 03 Oct 2026     2 min read Git & GitHub
Git Fundamentals

Agreed. For interview preparation, that was too detailed. I’ll keep future answers much shorter while retaining the important points.

For example:

1. What is Git?

What is it?

Git is a distributed version control system (DVCS) used to track changes in source code and manage different versions of a project.

Why do we need it?

  • Track code changes and history.
  • Multiple developers can work together.
  • Supports branching and merging.
  • Allows rollback to previous versions.
  • Commonly used with GitHub and Azure Repos.

How does it work?

Working Directory
      ↓ git add
Staging Area
      ↓ git commit
Local Repository
      ↓ git push
Remote Repository

Basic Commands

git add .
git commit -m "Added login feature"
git push origin main

Real Project

A developer creates a feature branch, makes changes, commits and pushes them, then creates a Pull Request. After code review and CI checks, the changes are merged into main.

Key Points

  • Git = DVCS
  • Git ≠ GitHub
  • add → Stage
  • commit → Save locally
  • push → Send to remote
  • Supports branching, merging, collaboration, and CI/CD

Interview Answer

Git is a distributed version control system used to track source code changes. It allows developers to work using branches, maintain code history, merge changes, and collaborate through remote repositories such as GitHub or Azure Repos.


2. Why do we use Git?

We use Git mainly for:

  • Version control – maintain code history.
  • Collaboration – multiple developers can work together.
  • Branching – develop features independently.
  • Rollback – restore previous versions.
  • Code review – supports Pull Request workflows.
  • CI/CD – commits and PRs can trigger pipelines.

Interview Answer

We use Git to track and manage source code changes. It helps developers collaborate using branches, maintain version history, merge changes safely, and integrate source control with CI/CD pipelines.

I’ll use roughly this length for your upcoming Git/GitHub and Azure DevOps questions.

← Back to Articles