Repository
A repository (repo for short) is a project folder tracked by git, together with its full history: commits, branches and settings. It can live only on your computer or also on an online platform such as GitHub, where others can download it. Claude Code usually runs from the top-level folder of a repository.
The folder of a project tracked by git, with its whole history. In short: repo.
How it shows up in Claude Code
When you type claude in a repository's top-level folder, Claude sees the project's files and can use its git history. That's also where you keep the files that tell Claude how to work: CLAUDE.md for rules, the .claude/ folder for settings and skills. Because they're part of the repository, your teammates get them too.
The repository matters for automation as well. The documentation says that for GitHub Actions you put a CLAUDE.md in the repository root with the project's style and rules, and Claude follows them when it creates PRs. The /install-github-app command works only with github.com repositories and needs admin access to the repo.
Example
You have a repo on GitHub and want to work on it on your computer:
git clone https://github.com/your-name/cafe.git
cd cafe
claude
Then your first question to Claude might be “briefly explain how this repository is organised”.
Common mistakes
- Putting files with passwords or keys into the repository. The documentation says keys belong in secrets, not in code.
- Confusing the repository with GitHub. The repo is the project with its history; GitHub is just one place to keep it online.
- Starting Claude in a subfolder and being surprised it doesn't see the root
CLAUDE.mdor the rest of the project. - Making a repo public without checking what's in it.
Related terms and where you learn it
A repository is made of commits and branches, managed by git. You usually keep it on GitHub, and the rules for Claude live in CLAUDE.md.
It comes up in the lesson “8. How do you use Claude with git?”, in module 04 · The working method, step by step, and in the lesson “What are CI and GitHub Actions?” in module 10 · Claude on autopilot.
How it appears in the course
In practice, it’s a git repository (a project saved on a server, usually GitHub, with its whole history).
What is a marketplace? · Module 09, Plugins: ready-made packages
You make a repository with the .claude-plugin/marketplace.json file and add the plugin to its plugins list.
Try it yourself · Module 09, Plugins: ready-made packages
Or to another place, for example another GitHub repository.
For the curious · Module 09, Plugins: ready-made packages
Learn Claude Code from zero, in plain English
12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.