TOPIC 06/1816 MINNOT STARTED

Git with a shared copy: remotes, push, pull and fetch

Connect your project to a shared copy, send your commits to it, bring in the work of others, and know the difference between fetch and pull so you never lose work.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a shared notice board in the office and your own notebook. You write in your notebook all day. At set times you pin pages on the shared board. You read what others pinned before you add more.

The notebook is your local repository. The board is the remote. Putting pages up is a push. Reading the board without changing your notebook is a fetch. Copying board pages into your notebook is a pull.

Tom, a tester at Daily List, a to-do list app, keeps his test notes this way. Mei, the test lead, pushes shared fixtures. Leo, a developer, pushes code Tom must pull before his checks stay green.

What it is: Git records snapshots of tracked project files and available commit history. 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 is one slice of this. It is a copy of your project that lives on another computer, usually on GitHub, and Git gives it a short name, usually origin. Push, pull and fetch are the three ways to move commits between your copy and the remote.

Why it matters: A tester's branch is useless if it never reaches the shared copy, because nobody else can see or run it. A local run is also misleading if it ignores what Mei and Leo already pushed. Tom needs these commands to keep his checks on the same board as the team, and to avoid overwriting a teammate's work.

PLAIN WORDS · 3 in this section
snapshots
records of how things stood at one moment
github
a web site that hosts code and runs checks
overwriting
writing new data over old data

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 shared noticeboard in the office and your own notebook.

  1. Notebook
  2. Pin
  3. Read
Noticeboard

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
Your notebookThe local repository
The shared boardThe remote
Pinning a pageA push
Reading the boardA fetch

WHERE THIS PICTURE STOPS

  • A board is on a wall, but a remote is a repository address.
  • A notebook is private, but a clone is a full copy.
  • Pinned pages stay, but force pushes can replace them.

HOOK

Notebook, board, pin, read.

TELL A FRIEND

A notebook and a shared board.

OFTEN MIXED UP WITH Git branches: work on a copy of the line, then merge it back. That topic makes and merges branches on one machine. This one shares them with a team through a remote.

Sources & standards — 4 sources
  1. Market practice

    Git git-fetch manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: retrieve objects/refs and update remote-tracking refs, normally without changing working files.

    DESCRIPTION: retrieve objects/refs and update remote-tracking refs, normally without changing working files. · 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-pull manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION and fast-forward options: fetch plus selected integration, with flags/configuration controlling behavior.

    DESCRIPTION and fast-forward options: fetch plus selected integration, with flags/configuration controlling behavior. · 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.

  4. Market practice

    Git git-reflog manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: local reference-update logs and expiry; recovery depends on available objects/references.

    DESCRIPTION: local reference-update logs and expiry; recovery depends on available objects/references. · 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 — 4 sources
  1. Market practice

    Git git-fetch manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: retrieve objects/refs and update remote-tracking refs, normally without changing working files.

    DESCRIPTION: retrieve objects/refs and update remote-tracking refs, normally without changing working files. · 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-pull manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION and fast-forward options: fetch plus selected integration, with flags/configuration controlling behavior.

    DESCRIPTION and fast-forward options: fetch plus selected integration, with flags/configuration controlling behavior. · 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.

  4. Market practice

    Git git-reflog manual (2.51.0) ↗ — Git project · Git 2.51.0 — DESCRIPTION: local reference-update logs and expiry; recovery depends on available objects/references.

    DESCRIPTION: local reference-update logs and expiry; recovery depends on available objects/references. · 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.