Lesson 1 of 4

What is Git & GitHub?

Version Control Basics

Git is a version control system — it tracks changes to your files over time. Think of it like a "save game" feature for code. You can go back to any previous version, see who changed what, and work on features without breaking everything.

GitHub is a website that hosts Git repositories online. It's where you store your code, collaborate with others, and discover open-source projects.

Why Does This Matter?

  • Never lose work — Every change is saved
  • Collaborate easily — Multiple people can work on the same project
  • Track history — See exactly what changed and when
  • Undo mistakes — Revert to any previous version

Key Concepts

  • Repository (repo) — A project folder tracked by Git
  • Commit — A snapshot of your changes (like a save point)
  • Branch — A parallel version for experimenting
  • Merge — Combine changes from different branches

Check if Git is Installed

git --version

Expected output: git version 2.43.0

If you see a version number, Git is installed!

→ Proceed to Lesson 2: Setting Up GitHub