GitHub Repository Citation in APA, MLA, Chicago and Harvard
Style rules checked October 23, 2026 · Next check by January 21, 2027 · AI-assisted source and citation checks; not human review
The short answer: To cite this gitHub repository in APA 7, list the creator, year of release, software title, version, software description and DOI or repository URL, in that order. Every citation below comes from a real citation engine, in APA Style 7th edition, MLA Handbook 9th edition, Chicago Manual of Style 18th edition (notes and bibliography) and Cite Them Right 12th edition (author-date/Harvard).
Examples in every style
Real versioned repository: Citation File Format
The maintainers' public CITATION.cff identifies nine creators, version 1.2.0, its release date and a version-specific DOI. This example cites that version, not the continually changing main branch.
| Style | Form | Citation |
|---|---|---|
| APA | Reference list entry | Druskat, S., Spaaks, J. H., Chue Hong, N., Haines, R., Baker, J., Bliven, S., Willighagen, E., Pérez-Suárez, D., & Konovalov, O. (2021). Citation File Format (Version 1.2.0) [Computer software]. https://doi.org/10.5281/zenodo.5171937 |
| APA | In text | (Druskat et al., 2021) |
| APA | In text, narrative | Druskat et al. (2021) |
| MLA | Reference list entry | Druskat, Stephan, et al. Citation File Format. Computer software. Version 1.2.0, 9 Aug. 2021, https://doi.org/10.5281/zenodo.5171937. |
| MLA | In text | (Druskat et al.) |
| MLA | In text, narrative | Druskat et al. |
| Chicago | Bibliography entry | Druskat, Stephan, Jurriaan H. Spaaks, Neil Chue Hong, et al. Citation File Format. Computer software. V. 1.2.0. Released August 9, 2021. https://doi.org/10.5281/zenodo.5171937. |
| Chicago | First note | Stephan Druskat et al., Citation File Format, Computer software, v. 1.2.0, released August 9, 2021, https://doi.org/10.5281/zenodo.5171937. |
| Chicago | Short note | Druskat et al., Citation File Format. |
| Harvard | Reference list entry | Not displayed: Pinned software rendering omits actual version1.2.0 and software medium, although both exist in correct software CSL input and checked named institutional template. |
| Harvard | In text | (Druskat et al., 2021) |
| Harvard | In text, narrative | Druskat et al. (2021) |
Synthetic repository with no DOI
Illustrative metadata only, not an actual repository or tested tool: a named researcher releases version 1.4.2. No invented URL or DOI is supplied. The source details in this example are made up to show the format.
| Style | Form | Citation |
|---|---|---|
| APA | Reference list entry | Chen, M. (2025). Survey cleaning notebook (Version 1.4.2) [Computer software]. |
| APA | In text | (Chen, 2025) |
| APA | In text, narrative | Chen (2025) |
| MLA | Reference list entry | Chen, Maya. Survey Cleaning Notebook. Computer software. Version 1.4.2, 12 Apr. 2025. |
| MLA | In text | (Chen) |
| MLA | In text, narrative | Chen |
| Chicago | Bibliography entry | Chen, Maya. Survey Cleaning Notebook. Computer software. V. 1.4.2. Released April 12, 2025. |
| Chicago | First note | Maya Chen, Survey Cleaning Notebook, Computer software, v. 1.4.2, released April 12, 2025. |
| Chicago | Short note | Chen, Survey Cleaning Notebook. |
| Harvard | Reference list entry | Not displayed: Pinned rendering loses supplied software version1.4.2 and software-medium description. |
| Harvard | In text | (Chen, 2025) |
| Harvard | In text, narrative | Chen (2025) |
How the styles differ for this source
| Style | Order of elements | What is different | Source |
|---|---|---|---|
| APA Style 7th edition | creator, then year of release, then software title, then version, then software description, then DOI or repository URL | GitHub provides an APA software citation, but its preferred-citation field may instead identify a related paper. | Style guide |
| MLA Handbook 9th edition | creator or responsible organization, then repository or software title, then version or commit, then publisher when different, then date, then location | MLA uses the core-element template; preserve the identity of a file or version instead of treating GitHub as its author. | Style guide |
| Chicago Manual of Style 18th edition (notes and bibliography) | creator, then software title, then version or commit, then date when supplied, then DOI or stable location | Chicago's public web-source guidance supplies the basic retrieval pattern; there is no claim of a dedicated repository rule in the quick guide. | Style guide |
| Cite Them Right 12th edition (author-date/Harvard) | creator, then release year, then software title, then version, then computer program, then DOI or URL, then access date | The Harvard examples use the pinned Cite Them Right 12th implementation; the public RGU software guide is a separate current institutional reference, not proof of the latest edition's punctuation. | Style guide |
Edge cases
- A repository requests citation of a paper instead of the code. Read preferred-citation before copying the Cite this repository output. GitHub supports a preferred research-article citation, so that output does not necessarily identify the software version you used. Style guide. Applies to APA Style 7th edition, MLA Handbook 9th edition, Chicago Manual of Style 18th edition (notes and bibliography), Cite Them Right 12th edition (author-date/Harvard).
- A concept DOI and a version DOI are both supplied. Match the identifier to your claim. The CFF maintainers explicitly distinguish their all-versions concept DOI from the DOI for version 1.2.0; the worked example uses the latter. Style guide. Applies to APA Style 7th edition, MLA Handbook 9th edition, Chicago Manual of Style 18th edition (notes and bibliography), Cite Them Right 12th edition (author-date/Harvard).
- You quote one source-code file rather than use a whole package. Record the file name and a revision or commit. MLA's source-code discussion explains why a version or commit matters; that older eighth-edition article is supporting background, not mislabelled ninth-edition wording. Style guide. Applies to MLA Handbook 9th edition.
- The repository has no visible date. Do not replace a release date with the year you visited GitHub. Chicago's public web-source guide permits an access date when publication or revision dates are missing. Style guide. Applies to Chicago Manual of Style 18th edition (notes and bibliography).
Common mistakes
Calling GitHub the software author
The hosting platform and the people responsible for the code are different. Read the maintainer-supplied creator metadata.
Not this: GitHub listed as author for a named research team
Do this (APA Style 7th edition, reference list entry): Druskat, S., Spaaks, J. H., Chue Hong, N., Haines, R., Baker, J., Bliven, S., Willighagen, E., Pérez-Suárez, D., & Konovalov, O. (2021). Citation File Format (Version 1.2.0) [Computer software]. https://doi.org/10.5281/zenodo.5171937
Using the all-versions DOI while claiming a particular release
A versioned reference should identify the consulted release. The real CFF metadata explicitly separates those DOI meanings.
Not this: Concept DOI 10.5281/zenodo.1003149 labelled as the identifier for version 1.2.0
Example not displayed (Cite Them Right 12th edition (author-date/Harvard), reference list entry): Pinned software rendering omits actual version1.2.0 and software medium, although both exist in correct software CSL input and checked named institutional template.
Copying a paper citation and assuming it documents the code
The preferred item can be a paper. Keep paper attribution and software-version documentation distinct.
Not this: A journal article presented as the source-code release
Do this (MLA Handbook 9th edition, reference list entry): Chen, Maya. Survey Cleaning Notebook. Computer software. Version 1.4.2, 12 Apr. 2025.
Check before you cite
- Open CITATION.cff or the maintainers' citation instructions.
- Check whether preferred-citation identifies software, a paper or a dataset.
- Record the actual release tag or commit used.
- Distinguish a version DOI from an all-versions concept DOI.
- Preserve the creator list and do not substitute the hosting service.
Is this the right source type?
Start by deciding what you need to document: running a released package, inspecting an individual source file, or discussing a paper associated with the project. Those are not interchangeable research objects. Open the repository's citation file and compare its title, creators, version and identifier with the material you actually used. GitHub's citation box can be configured to prefer a journal article, so copying it without checking may acknowledge the paper while leaving your software version unidentifiable. The real Citation File Format example is useful because its maintainers explicitly provide both a concept DOI for all versions and a DOI for version 1.2.0. The example deliberately selects the version-specific identifier. If your analysis instead depends on a particular code change, retain the commit and file path in your notes; do not invent a numbered release. The second example is synthetic and has no DOI, showing why a missing identifier is a gap to document rather than a field to fabricate. None of this claims that the software was run or tested by this website.
Frequently asked questions
Not merely because it hosts the repository. Use the creators identified by the project's citation metadata; GitHub's own documentation shows a separate authors field.
No. A CITATION.cff file can use preferred-citation to direct users to a paper or another supported research object. Check what the generated entry identifies.
The DOI 10.5281/zenodo.5171937 identifies CFF version 1.2.0. The maintainers separately identify 10.5281/zenodo.1003149 as the concept DOI for all versions.
A citation engine renders every citation here from the style files of our free generator. Nothing is typed by hand. Found a mistake? Report a correction.
This page is part of our source type citation guide.
For background, read the full guide to citation and referencing.
Next step for most readers: a free tool that formats citations.
Test your own text
Compare your in-text citations with your finished reference list. From $0.19 per page, minimum order $2.90.
Check my citations