Skip to main content
v2026.1714 entries · CC-BY 4.0
Dictionary termTrack BStablev2026.2

Code repository

A version-controlled storage location for source code, typically operated on top of a distributed version-control system such as Git, exposing the code's full revision history, branches, tags, and (often) collaboration features such as issues, pull requests, and code review.

ByCASRAI Editorial Board
· Last updated 21 May 2026

Examples

Worked examples

  • Is an instance

    A Git repository on GitHub for an open-source research software project.

  • Is an instance

    A self-hosted GitLab repository at a research institute for internal scientific code.

Counter-examples

Looks similar, but isn't

  • Not an instance

    A zip file of source code on a personal webpage is not a code repository in the version-control sense.

  • Not an instance

    A data-only repository with no source code is not a code repository.

Editorial commentary

Code repositories are the canonical home of research software during development. Platforms include GitHub, GitLab, Bitbucket, Codeberg, and self-hosted Git instances; mercurial and SVN platforms persist in some communities. Within research-information ecosystems, code repositories are distinct from but linked to data repositories: a code repository may be referenced from a dataset’s DataCite metadata via a ‘IsSupplementedBy’ relationship, or vice versa. For citation and long-term archival, releases from code repositories are typically deposited in Zenodo (with a DOI) or in Software Heritage.

References

  • C
  • h
  • a
  • c
  • o
  • n
  • S
  • .
  • ,
  • S
  • t
  • r
  • a
  • u
  • b
  • B
  • .
  • ,
  • P
  • r
  • o
  • G
  • i
  • t
  • ,
  • A
  • p
  • r
  • e
  • s
  • s
  • ,
  • 2
  • n
  • d
  • e
  • d
  • i
  • t
  • i
  • o
  • n
  • ,
  • 2
  • 0
  • 1
  • 4
  • (
  • g
  • i
  • t
  • s
  • c
  • m
  • .
  • c
  • o
  • m
  • /
  • b
  • o
  • o
  • k
  • )
  • .

Also known as

Source code repository · Code repo

Machine-readable encodings

Use in your systems

JATS XML <role> element
xml
<role vocab="credit"
      vocab-identifier="https://casrai.org/dictionary/"
      vocab-term="Code repository"
      vocab-term-identifier="https://casrai.org/dictionary/term/code-repository" />
Schema.org DefinedTerm (JSON-LD)
json
{
  "@context": "https://schema.org",
  "@type": "DefinedTerm",
  "name": "Code repository",
  "identifier": "https://casrai.org/dictionary/term/code-repository",
  "description": "A version-controlled storage location for source code, typically operated on top of a distributed version-control system such as Git, exposing the code's full revision history, branches, tags, and (often) collaboration features such as issues, pull requests, and code review.",
  "inDefinedTermSet": "https://casrai.org/dictionary/domain/research-data-infrastructure/",
  "url": "https://casrai.org/dictionary/term/code-repository",
  "sameAs": [
    "Source code repository",
    "Code repo"
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}

Adopted by research universities worldwide

University of Cambridge logoColumbia University logoUniversity of Edinburgh logoHarvard University logoMassachusetts Institute of Technology logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoUniversity of Cambridge logoColumbia University logoUniversity of Edinburgh logoHarvard University logoMassachusetts Institute of Technology logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logo
  • University of Cambridge logo
  • Columbia University logo
  • University of Edinburgh logo
  • Harvard University logo
  • Massachusetts Institute of Technology logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo

View CASRAI adoption →