Skip to main content
v2026.11,772 entries · CC-BY 4.0
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 1 Sept 2026
Share this

Ask CASRAI · included with Regulatory Radar

Ask about GitHub mirror

Ask CASRAI answers research-administration questions and cites the passages behind every claim — and says so when the corpus does not cover something, instead of guessing. It comes with a Regulatory Radar subscription at $29 a month, alongside the daily digest of regulatory changes and the dashboard of what changed.

150 questions a day, on this site, over the API, or inside your own tools through the CASRAI MCP server.

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

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.

Editorial commentary

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.

Also known as

GitHub read-only mirror

Machine-readable encodings

Use in your systems

JATS XML <role> element
xml
<role vocab="credit"
      vocab-identifier="https://casrai.org/dictionary/"
      vocab-term="GitHub mirror"
      vocab-term-identifier="https://casrai.org/dictionary/term/github-mirror" />
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",
  "sameAs": [
    "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:54",
  "dateModified": "2026-09-01T01:44:34",
  "inLanguage": "en-GB",
  "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 →

Regulatory Radar

Stop finding out after the fact

$29/month, cancel anytime. Daily digest updates from our analysis, a dashboard holding the same items, and a cited assistant for everything they raise.

  • Federal Register, Federal Register+, Grants.gov, Regulations.gov, NSF News, UKRI, plus CASRAI’s own published content.
  • 72,264 indexed passages, and every answer cites the ones it drew on.