Skip to main content
v2026.11,986 entries · CC-BY 4.0
CASRAICASRAI Working GroupsHelp write the standards you have to implement24 working groups propose, review and ratify the terms CASRAI publishes, one per dictionary domain. Community and observer seats start at about two hours a month; chairs and co-chairs give 6–8 hours a month. Applications are reviewed.Apply to join a group CASRAI · Volunteer seats
Dictionary termTrack BStablev2026.2

GitHub mirror

A copy of a Git repository (or set of repositories) hosted on GitHub that tracks an upstream source repository elsewhere, typically maintained for redundancy, visibility, or community-engagement reasons rather than as the canonical primary copy.

ByCASRAI Editorial Board
· Last updated 5 Sept 2026

Working group for this domain: Research data infrastructure working group

Share this

Ask CASRAI · full access

Ask about GitHub mirror

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Editorial commentary

GitHub mirror in practice

GitHub-mirror arrangements are common where a project’s canonical repository lives on a self-hosted Git server, GitLab instance, or institutional Gerrit installation, but a public mirror on GitHub is maintained for ease of discovery, issue-tracking by external contributors, or CI integrations. Pushes flow from upstream to mirror via scheduled jobs or webhooks. For long-term preservation, the upstream is the canonical artefact; the GitHub mirror is a working convenience.

GitHub mirrors and software citation

For research software specifically, a GitHub mirror is not itself a citable archival copy. Because a mirror only reflects the current state of its upstream branches, the code at a given mirror URL can change, or the mirror can be unlinked or removed, without anything happening to a properly archived, versioned snapshot. When citing software in a paper, dataset record, or methods section, cite a fixed, versioned artefact instead of a live mirror link: Zenodo’s GitHub integration archives a tagged repository release and mints a DOI for that release automatically, and the Software Heritage archive independently and continuously archives public repository history (mirrors included) and assigns each version a persistent SWHID. Either gives a reader a permanent target that a live GitHub mirror cannot guarantee on its own, in line with the FORCE11 Software Citation Principles‘ emphasis on citing a specific, persistent version rather than a mutable repository URL. See DataCite, GitHub, Zenodo: the three-cornered software-citation stack for how the three pieces fit together, Zenodo for the repository side of that workflow, and the reproducibility infrastructure guide for the full research-office checklist this fits into.

References

  • GitHub documentation, ‘About repository mirroring’ (docs.github.com).

Frequently Asked Questions

What is a GitHub mirror?

A GitHub mirror is a copy of a repository hosted on GitHub while the canonical, authoritative copy of the project lives elsewhere — for example on a self-hosted Git server, a GitLab instance, or an institutional Gerrit installation.

Is a GitHub mirror the official version of a project?

No. For long-term preservation the upstream repository is treated as the canonical artefact, and the GitHub mirror is a working convenience — useful for visibility and integration, but not the authoritative source.

How does a GitHub mirror stay updated with the source repository?

Changes are pushed from the upstream repository to the GitHub mirror through scheduled jobs or webhooks, rather than being edited directly on GitHub.

Why do projects maintain a GitHub mirror instead of just using GitHub as the primary repository?

Common reasons include making the project easier to discover, letting external contributors file issues, and integrating with CI systems that expect a GitHub-hosted repository, while keeping the canonical codebase on infrastructure the maintainers control.

Can I report issues or contribute through a project’s GitHub mirror?

Often yes — issue-tracking for external contributors is one of the common reasons projects maintain a GitHub mirror in the first place, though whether contributions such as pull requests are accepted directly through the mirror varies by project.

Should I cite a GitHub mirror in a paper?

No — cite a fixed, versioned snapshot instead. A GitHub mirror’s contents can change, or the mirror itself can be removed, so it does not make a stable citation target. Archive the specific version you used through Zenodo’s GitHub integration, which mints a DOI for a tagged release, or through Software Heritage, which assigns a persistent SWHID, and cite that identifier rather than the mirror’s URL.

Examples

Worked examples

  • Is an instance

    The Linux kernel's official GitHub mirror, tracking kernel.org's git tree.

  • Is an instance

    An institutional repository mirroring its internal GitLab projects to GitHub for community engagement.

  • Is an instance

    A research team mirroring their GitLab-hosted analysis code to GitHub for visibility, then archiving the exact tagged release cited in their published paper via Zenodo's GitHub integration to obtain a citable DOI, rather than citing the mirror's live URL.

Counter-examples

Looks similar, but isn't

  • Not an instance

    A fork created independently with no automated sync from upstream is not a mirror.

  • Not an instance

    A clone on a developer's laptop is not a mirror.

Also known as

GitHub read-only mirror

Machine-readable encodings

Use in your systems

JATS XML <kwd> element
xml
<kwd vocab="CASRAI Dictionary"
     vocab-identifier="https://casrai.org/dictionary/"
     vocab-term="GitHub mirror"
     vocab-term-identifier="https://casrai.org/dictionary/term/github-mirror">GitHub mirror</kwd>
Schema.org DefinedTerm (JSON-LD)
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "@id": "https://casrai.org/dictionary/term/github-mirror",
  "name": "GitHub mirror",
  "identifier": "https://casrai.org/dictionary/term/github-mirror",
  "description": "A copy of a Git repository (or set of repositories) hosted on GitHub that tracks an upstream source repository elsewhere, typically maintained for redundancy, visibility, or community-engagement reasons rather than as the canonical primary copy.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/data-infrastructure#set",
  "url": "https://casrai.org/dictionary/term/github-mirror",
  "alternateName": [
    "GitHub read-only mirror"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "publisher": {
    "@id": "https://casrai.org/#organization"
  },
  "author": {
    "@id": "https://casrai.org/#editorial-team"
  },
  "datePublished": "2026-05-21T02:18:54Z",
  "dateModified": "2026-09-05T17:31:10Z",
  "inLanguage": "en",
  "isAccessibleForFree": true
}

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →