Citation examplesHow to cite a GitHub repository

How to cite a GitHub repository

Quick answer

Cite the specific commit hash or release tag. Use the repository title, author(s), year, and the GitHub URL.

Why this one is tricky

Repositories evolve continuously and may have many contributors.

Example (APA 7)

Maintainer, M. (2024). Repository name (Version 1.2.0) [Software]. GitHub. https://github.com/owner/repo

Most common mistake

Omitting the commit or version — the reader won't know which state of the code you used.

Citing a GitHub repository more than once?

Use the free Citation Generator for a single reference, or upload your whole .docx to DEEPNOTIS to handle every tricky citation at once.

Last updated: 5 May 2026