TOPIC 07/1816 MINNOT STARTED

Git stash and tags: set half-done work aside and mark a release

Put unfinished work on a shelf so you can switch branches, bring it back, and mark the exact commit that a test run or a release used.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a shelf by the door and a sticker on a box. You are mid-job when a neighbour needs help. You put the half-finished work on the shelf by the door, help, then pick the work up again. A sticker on a finished box names which delivery it was.

The shelf is the stash. The sticker is the tag. Annotated tags carry a message; lightweight tags are only a name.

Tom, a tester at Daily List, a to-do list app, uses both. Leo, a developer, asks him to drop a half-written check and verify a release branch. Mei, the test lead, asks for a tag that names the build they signed off.

What it is: Git records snapshots of tracked project files and available commit history, with who saved each version and when. It runs on your own computer and works without the internet. GitHub is a different thing: a website that stores Git projects so a team can share them. A and a are two small tools inside Git. A stash is a private shelf for changes you have not committed. A tag is a reference to one commit; published release policy should keep that reference stable, such as v1.4.0.

Why it matters: A tester is interrupted often, by a hot bug, a release check or a review. Stash keeps unfinished files off a commit he did not mean to make. Tags mark the exact commit of a release, so Tom can identify the tracked source later; reproducing the same binary also requires its build inputs and environment.

PLAIN WORDS · 3 in this section
annotated
with explanatory notes written beside it
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 shelf by the door and a sticker on a box.

  1. Shelf
  2. Return
  3. Sticker
Shelf and sticker

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The shelf by the doorThe stash
Picking the work up againStash pop
A sticker on a finished boxA tag
A sticker with a noteAn annotated tag

WHERE THIS PICTURE STOPS

  • A shelf is in the hall, but a stash is only in your copy.
  • A sticker suggests permanence; a tag reference can be moved, so stable release identity depends on policy.
  • A shelf holds things for a day, but old stashes become hard to read.

HOOK

Shelf and sticker.

TELL A FRIEND

A shelf and a sticker.

OFTEN MIXED UP WITH Git branches: work on a copy of the line, then merge it back. That topic makes and merges branches. This one shelves unfinished work and marks a commit for good.

Sources & standards — 3 sources
  1. Market practice

    Git git-stash manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION, pop, --index and --include-untracked: tracked default, conflict retains entry and staged restoration.

    DESCRIPTION, pop, --index and --include-untracked: tracked default, conflict retains entry and staged restoration. · 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-tag manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION and DISCUSSION on re-tagging: annotated/lightweight refs and published identity policy.

    DESCRIPTION and DISCUSSION on re-tagging: annotated/lightweight refs and published identity policy. · 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 git-push manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION, --follow-tags, OUTPUT and rejected updates: push destination/configuration, rejection categories and published-history risk.

    DESCRIPTION, --follow-tags, OUTPUT and rejected updates: push destination/configuration, rejection categories and published-history risk. · 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-stash manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION, pop, --index and --include-untracked: tracked default, conflict retains entry and staged restoration.

    DESCRIPTION, pop, --index and --include-untracked: tracked default, conflict retains entry and staged restoration. · 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-tag manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION and DISCUSSION on re-tagging: annotated/lightweight refs and published identity policy.

    DESCRIPTION and DISCUSSION on re-tagging: annotated/lightweight refs and published identity policy. · 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 git-push manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION, --follow-tags, OUTPUT and rejected updates: push destination/configuration, rejection categories and published-history risk.

    DESCRIPTION, --follow-tags, OUTPUT and rejected updates: push destination/configuration, rejection categories and published-history risk. · 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.