Illustration
Upgrade now
Illustration
Upgrade now

Repository

Summary:

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.

Repository

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's Code tab with the main branch selected, 3 branches and 0 tags, a latest commit by maya titled Add allergy notes to the menu with the short hash a1f3c9e and a count of 24 commits, and a file list of images, index.html, menu.html, and README.md, each showing its last commit message and how long ago it changed

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.

GitHub's Code menu for the sweetcrumbs/bakery-website repository, open on the Local tab, with a Clone section offering HTTPS, SSH, and GitHub CLI and a copyable repository URL, followed by Open with GitHub Desktop and Download ZIP

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

Frequently Asked Questions

What's the difference between a public and a private repository?
What's the difference between forking and cloning a repository?
What files should every GitHub repository include?
Is a private repository a safe place to keep API keys?
What do stars, forks, and watchers mean on GitHub?
Avatars

Join 500,000+ product professionals leveling up with Uxcel

Interactive learning built for busy professionals. Advance your UX design or product management career in just 5 minutes a day.
Icon

Over 60 courses

Icon

Recognized certificates

Icon

Career paths & more

Company logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logoCompany logo
Stars

Successfully transforming people’s careers & lives

4.8/5
Avatars

10,000+ verified public & course reviews

Photo

With Uxcel, I've gained so much confidence talking with clients.

Blake Feldman
Product Designer · 15+ years in design
Photo

Uxcel helped me level up from a junior to a senior designer

Chieri Wada
UX/UI Designer · 8+ years in design
Photo

Uxcel really helped me during my career change.

Ryan Blackwell
UX Designer & Writer · 5+ years in design
Photo

Uxcel is in my browser favorites, I use it for a ton of stuff.

Matt Salik
UX designer · 20+ years in design
Photo

Love the certifications, love the price. Thumbs up Uxcel.

Phil Campbell
Information Architect · 1 year in design