Module 01 of 10 · Conceptual · No commands

What is Git & Version Control?

The Problem Git Solves

Imagine you're writing an essay and you save it as essay_final.docx. Then you make changes and save essay_final_v2.docx. Then essay_REALLY_final.docx. Sound familiar?

Software is the same, but with hundreds of files and multiple people. Without a system, you end up with chaos — overwritten work, no record of what changed, and no way to undo a bad decision.

Version control is a system that tracks every change to your files over time. You can see who changed what, when, and why — and you can go back to any previous state at any moment.

What is Git?

Git is the world's most popular version control system. It was created in 2005 by Linus Torvalds (the creator of Linux) because he needed something fast, distributed, and free.

Key idea: Git lives on your computer. It's a tool you run in a terminal. GitHub is a website that hosts git repositories in the cloud — we'll cover that in Module 8.

How Git Thinks About Files

Most systems store changes as differences ("file A changed from X to Y"). Git works differently — it stores snapshots. Every time you save a version (called a commit), git takes a picture of all your files at that moment.

Working Files
Staging Area
Commit (Snapshot)
History

You'll learn each step in the next modules. For now, remember the three stages:

Why Developers Love Git

Git vs GitHub

These are often confused. Here's the difference:

Other hosting platforms like GitLab and Bitbucket also work with git. Git is the standard; the platform is your choice.

This module is conceptual — there are no commands to practice yet. Your challenge below just asks you to confirm you've read through the material. Next module, we start typing!

Your Challenge

Type git --version in the terminal to see git in action
Type git help to see the list of common commands
Module 1 complete! You understand what Git is and why it exists. Time to get your hands dirty.
student@git-mastery: ~