Skip to main content
v2026.11,610 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 15 Aug 2026

Ask about GitHub mirror

Answers are drawn from this dictionary entry and the rest of the CASRAI corpus, with a link to every source.

Answers are AI-generated from CASRAI’s own published pages and can be wrong, so check the linked sources before relying on one; your question is logged without personal data — never sold, never used to train a third-party model — to show us what CASRAI is missing, so please do not type personal or confidential details. How we use this

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.

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.

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.

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"
  },
  "dateModified": "2026-08-15T05:20:04",
  "inLanguage": "en"
}

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 →