LESSON 1

What is Git

Learning objective: Understand what Git is and the problem it solves.

Understand

Git is a version control system that tracks changes to your files.

Git records snapshots of your project over time so you can review history, undo mistakes, and work safely. It runs locally on your computer and is the industry standard for developers.

Analogy: Git is like an unlimited undo history with save points for your whole project.

See It in Action

Check your Git version:

git --version
How it works: Running this confirms Git is installed and shows the version number.

Try It Yourself

  1. Open a terminal.
  2. Run git --version.
  3. Note the version it reports.

Quick Quiz

What does Git primarily do?

Challenge

In one sentence, explain a time version history would have saved you.

Success condition: You can explain what Git tracks and why it helps.