LESSON 3

Installing Git

Learning objective: Install and configure Git on your computer.

Understand

A quick setup gets Git ready to use.

After installing Git, set your name and email once — these are attached to every commit you make. This identifies your work in the project history.

Analogy: Configuring your name is like signing your work before you start.

See It in Action

One-time configuration:

git config --global user.name "Your Name"
git config --global user.email "you@email.com"
How it works: These commands store your identity globally so every commit is labelled with your name and email.

Try It Yourself

  1. Install Git for your operating system.
  2. Set your user name.
  3. Set your user email.

Quick Quiz

Why set your name and email in Git?

Challenge

Configure Git with your name and email and verify with git config --list.

Success condition: Your name and email appear in your Git configuration.