LearnThatStack Ace your next interview
Git & Version Control · question
Question 1 of 54

What is Git and how does it differ from centralized version control systems?

beginner
← All Git & Version Control questions
Re-explain

Git is a distributed version control system, so every clone holds the whole history. Centralized systems like Subversion or CVS keep the history on one server, and each client holds a working copy of the current files.

Git's history is local. You can commit, read the log, and compare versions with no network.

Aspect Git (distributed) Centralized (SVN, CVS)
Full history in every clone on the server only
Commit and read history local, no network need the server
Branching cheap and local server-side, needs network
Server outage any clone still has the full history no commits until it returns

The trade-off is that your commits stay private until you push, and teammates see them only after they fetch.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Git & Version Control One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

  • What is the difference between Git and GitHub? A strong answer separates the version control tool from the hosting service and notes that Git works with no host at all.
  • If every clone has the full history, how does a team agree on which copy is the real one? A strong answer names a shared remote the team agrees to treat as canonical, and says Git itself does not require one.
  • What is the difference between git fetch and git pull? A strong answer says which one changes your current branch, and why fetching first and looking before you merge is safer.
  • What is a Git branch under the hood, and why is creating one so cheap? A strong answer describes a branch as a small ref pointing at a commit, so creating one copies no files.
  • When might a centralized system still be the better choice? Look for large binary assets, file locking or per-path access control, plus a mention of Git's own fixes such as LFS.

What you can say

  1. Git is a distributed version control system, so every clone holds the whole history of the project.
  2. In a centralized system like Subversion or CVS, the history lives on one server and each developer has a working copy of the current files.
  3. Because the history is local in Git, I can commit, read the log and compare versions with no network at all.
  4. Branching is cheap and local too, while in a centralized system branches live on the server and need the network.
  5. If the server goes down, any Git clone still has the full history, but a centralized team can't commit until the server is back.
  6. The trade-off is that my commits stay private until I push, and teammates only see them after they fetch.

Weak answers to avoid

  • Confuses Git with GitHub GitHub is a hosting service and Git is the tool, which runs fine without it. Describe Git's model on its own terms and treat a host as one more copy.
  • Claims Git has no central server Most teams still push to one shared remote. The real difference is that you don't need the server to commit or read history, and every clone is a full copy.
  • Recites commands instead of the model Listing clone, commit and push misses the question. Say where the history lives and what that lets you do offline or during an outage.
  • Calls distributed strictly better That sounds shallow. Name the cost too. Local commits stay invisible until you push, and teammates see them only after they fetch.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Git & Version Control cheatsheet.

← Back to all Git & Version Control questions
Pro · $10/mo

47 of 54 Git & Version Control answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime