TOPIC 02/1816 MINNOT STARTED

Git from zero: install, first repository, add, commit and log

Start from a blank folder. Install Git, make a repository, learn the three places a change moves through, and save your first commit with a clear message.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a photo album with a tray. You arrange photos on a table, which is the working folder. You slide the ones you want into a tray, which is the staging area. Then you glue the tray's photos onto a dated page of the album. That page is a commit.

The album keeps every dated page. The whole album, with all its pages, is the repository (the project folder plus its saved history). The working folder, the staging area and the history are the three places a change moves through.

Tom, a tester at Daily List, a to-do list app, starts his own album for his test files.

What it is: Git records snapshots of tracked project files and available commit history. Each is kept with who saved it and when. Git runs on your own computer and works without the internet. GitHub is a different thing. It is a website that stores Git projects so a team can share them. You can use Git alone, with no GitHub at all.

Why it matters: Test files change all the time: new checks, fixed data, updated steps. Without Git, Tom keeps copies named login-test-final-2 and cannot say who changed what. When breaks, he cannot go back to the version that worked. With Git, Tom saves each change with a short note, shows Leo and Mei exactly what he did, and returns to any earlier version. Most teams keep both app code and test code in Git, so a tester who cannot use it cannot work on shared tests.

PLAIN WORDS · 2 in this section
snapshots
records of how things stood at one moment
github
a web site that hosts code and runs checks

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB A photo album with a tray for the next page.

  1. Edit
  2. Add
  3. Commit
Photo album

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The table where you arrange photosThe working folder
The trayThe staging area
A glued page with a dateA commit
The albumThe history

WHERE THIS PICTURE STOPS

  • An album page is fixed, but a commit can be undone.
  • A photo is one item; a commit records the tracked files selected in the index, not every local file.
  • You can see a table at a glance, but you need git status to see the tray.

HOOK

Table, tray, album.

TELL A FRIEND

An album: table, tray, page.

OFTEN MIXED UP WITH Version control for testers. That topic explains why teams use . This one does the first steps by hand.

Sources & standards — 3 sources
  1. Market practice

    Git git-add manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: add copies current file content to the index; later edits must be added again.

    DESCRIPTION: add copies current file content to the index; later edits must be added again. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Git 2.51.0. This is not live service testing or a full-publication certification.

  2. Market practice

    Git git-diff manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: working tree versus index; --cached compares staged changes against HEAD.

    DESCRIPTION: working tree versus index; --cached compares staged changes against HEAD. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Git 2.51.0. This is not live service testing or a full-publication certification.

  3. Market practice

    Git identity configuration ↗ — Git project · Git 2.51.0 — Full user.name/email section: author/committer metadata and environment overrides; authentication credentials are separate.

    Full user.name/email section: author/committer metadata and environment overrides; authentication credentials are separate. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Git 2.51.0. This is not live service testing or a full-publication certification.

PRACTISE AND KEEP

Sources for this topic — 3 sources
  1. Market practice

    Git git-add manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: add copies current file content to the index; later edits must be added again.

    DESCRIPTION: add copies current file content to the index; later edits must be added again. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Git 2.51.0. This is not live service testing or a full-publication certification.

  2. Market practice

    Git git-diff manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: working tree versus index; --cached compares staged changes against HEAD.

    DESCRIPTION: working tree versus index; --cached compares staged changes against HEAD. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Git 2.51.0. This is not live service testing or a full-publication certification.

  3. Market practice

    Git identity configuration ↗ — Git project · Git 2.51.0 — Full user.name/email section: author/committer metadata and environment overrides; authentication credentials are separate.

    Full user.name/email section: author/committer metadata and environment overrides; authentication credentials are separate. · Checked 2026-11-07

    Selected publisher sections read for Testing Tools audit. Git 2.51.0. This is not live service testing or a full-publication certification.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.