AI app builders, coding agents, code editors, and human teammates can all work on the same product, and the place where their work meets is usually a repository on GitHub. Designers and product managers now create these repositories, decide who can see them, and choose which tools may write to them. Knowing what a repository holds, and what it never forgets, is part of shipping anything built with AI.
In this glossary topic:

What is a repository?
A repository, often shortened to repo, is where a project lives in Git: the files and folders it's made of and, next to them, a record of every change ever saved. Each saved change is recorded as a commit with its author, date, and message, so any earlier state of the project can be found, compared, and restored.
On a computer, a repository looks like a normal project folder, with Git's records kept in a hidden .git folder inside it. On GitHub, the same repository gets a page of its own that shows the current files, a timeline of changes, and the discussions around them in issues and pull requests. A repository keeps a project's present and its past in one place.
What does a repository contain?
The visible part is the working files: pages, stylesheets, images, documents, and anything else the project needs. Behind them sits the history, a chain of commits reaching back to the very first one, and at least one branch, a separate line of work inside that history. Every repository has a default branch, the version GitHub shows first and the one changes are usually merged into. New repositories call it main. GitHub switched the default from master in October 2020, and tools that expect main can trip over older projects that never renamed theirs.
On GitHub, a repository also carries everything a team builds around the code: issues for tracking work, pull requests for proposing changes, automated checks, a visibility setting, and a list of who has access and what they're allowed to do. The history travels with every copy of a repository, but its issues, settings, and access rules stay on GitHub.
How does a repository differ from an ordinary project folder?
An ordinary folder only knows what its files look like right now. Save over a document and the previous version is gone, unless someone thought to keep a copy under a new name. A repository keeps every saved version, each labeled with who made it, when, and why, so a question like "what did this page say last month?" always has an answer.
Repositories and folders also behave differently in smaller ways. Git tracks files rather than folders, so an empty folder can't be added to a repository until something is inside it. Deleting a file removes it from the current version but not from the history, where every earlier commit still holds it. That helps with recovery and causes trouble when the deleted file contained a password. A folder shows what a project is, while a repository also shows how it got there.
Where does a repository live?
A repository usually exists in more than one place at once. A remote repository is a copy hosted on a service such as GitHub, the one a team shares. A local repository is a copy on one person's computer, usually made by cloning the remote, and it carries the full history plus a link back to its source. Git nicknames that source origin by default, which is why tools report that they pushed to origin.
The copies don't update each other on their own. Commits made on a laptop stay there until they're pushed, and new work on GitHub doesn't reach the laptop until it's pulled. Messages such as "This branch is 2 commits behind main" simply count the difference between 2 copies. Copies of the same repository can differ at any moment, and syncing them is always a deliberate step.
AI builders often hide that step behind a Sync button or push automatically, but the copies still drift apart when both sides change. The Git Clones, Forks & When to Use Them lesson shows how local and remote copies fall out of step and catch up again.
Why do repositories matter for designers and product teams?
Repositories have become the meeting point for AI-built work. An AI app builder, a code editor, a coding agent, and a developer can each keep their own copy of a project, and the repository on GitHub is the version they all sync with. Some builders call the connected repository the project's source of truth. Deployment services often watch it as well, publishing a new version of the site whenever the main branch changes. When 2 tools show different versions of a page, the repository's history shows which change came last and where it came from.
Ownership matters as much as content. A repository created under a designer's personal account belongs to that designer, and if the designer leaves the company, the repository leaves too. One owned by an organization, a shared account named after the business, keeps its history and everyone's access in place as people come and go. Whoever owns the repository owns the project's record, which is why it belongs in a shared account from the start.
How have repositories changed with AI?
Repositories are being created faster than ever. GitHub's Octoverse 2025 report counted 121 million new repositories that year, more than 230 every minute, for a total of 630 million. The same report found more than 1.1 million public repositories importing a software development kit for large language models, up 178% in a year.
AI tools also need a way into a repository, and how far that access reaches is a choice. Most connect by installing a GitHub App, whose installation screen asks for a choice between All repositories, which includes any created later, and Only select repositories. An installed app can always read public repositories, so the choice matters most for private ones. Limiting an AI tool to the repositories it works on keeps a mistake, or a compromised account, inside one project. The Guide to Giving AI Tools Access to GitHub lesson covers the settings behind that choice.
The connection itself can be fragile. Some AI builders can't connect to an empty repository until it holds at least one commit, which is one reason to add a README when a repository is created. Lovable's documentation notes that renaming or deleting a connected repository breaks its sync, and that a project disconnected from GitHub can't be reconnected, so a repository is worth treating as fixed once a builder depends on it.
What does a repository look like in practice?
Every repository on GitHub opens on the same layout, and its Code tab shows a branch menu, the latest commit with a running count of all commits, the file list, and the README rendered below it. Each file in the list carries the message and date of the last change made to it. Even the file list on GitHub reads like a summary of the project's history.

A repository answers two questions at a glance: what the project holds now, and how it got there. From the lesson Quick Guide to GitHub Repositories.
The difference between a repository and a plain folder is easy to see in GitHub's Code menu. Cloning copies the repository with its full history and keeps it linked to GitHub, so commits can move back and forth. Download ZIP saves only the current files, as an ordinary folder with no history and no way to send changes back.

Only a clone keeps the history and the link back to GitHub. A downloaded ZIP is just the current files.





