CurriculumGit BasicsWhat is Git?
Lesson 1 of 617%
Beginner5 min+50 XP

What is Git?

Git is a free, open-source distributed version control system that tracks changes in files over time. It lets you recall any previous version, collaborate with others, and work safely without fear of losing your work.

01.The Problem Git Solves

Before Git, developers saved files like "project_final.zip", "project_final_v2.zip", "project_REALLY_final.zip". This is messy, error-prone, and impossible to collaborate with. Git replaces this chaos with a clean, structured history of every change ever made.

Commit Timeline
a1b2c3d
init
b2c3d4e
feat
c3d4e5f
fix
d4e5f6a
HEAD

02.What is Version Control?

Version control is a system that records changes to files over time. You can revert files back to a previous state, compare changes over time, see who made what change and when, and recover from mistakes instantly.

Git's Three Areas
๐Ÿ“
Working Dir
Your files
โ†’ git add
๐Ÿ“‹
Staging Area
Prepared
โ†’ git commit
๐Ÿ—„๏ธ
Repository
.git/ history

03.Distributed vs Centralized

Git is "distributed" โ€” every developer has a complete copy of the entire repository including full history. You can work fully offline, commit locally, and sync when ready. If the server goes down, everyone still has the full project.

Distributed Architecture
๐Ÿ’ป
Your Local
push / pull
โ˜๏ธ
GitHub (Remote)
push / pull
๐Ÿ’ป
Teammate's Local
KNOWLEDGE CHECK

What makes Git "distributed"?

Rate this lesson:
CurriculumNext Lesson