# Remote Repository

> A shared copy of a repo on a server. The team swaps its work there.

**Field:** Software Development  
**Category:** Version Control  
**Also known as:** Remote, Git Remote, origin

## Think of it like

Think of it like a shared shelf in the school hall. Everyone brings work there and takes the latest copy home.

## Definition

A remote is a copy of your repository kept somewhere else, usually on a server. Your team pushes work to it and pulls work from it. Each remote has a short name, and the main one is usually called origin. Sites like GitHub and GitLab host remotes for you. Your own copy and the remote only match after you push or pull.

## Example

Emma adds a remote called origin that points to her team's server. Now her commits have somewhere to go.

## Example code

```console
$ git remote add origin https://example.com/ada/shop.git
$ git remote -v
origin	https://example.com/ada/shop.git (fetch)
origin	https://example.com/ada/shop.git (push)
```

One remote named origin, used both to fetch and to push.

## Why it matters

A remote is how a team shares work. It is also a backup if your laptop dies.

## Common mistake

Thinking a commit is on the remote as soon as you make it. It stays on your computer until you push.

## Three principles

- **A copy elsewhere.** Usually on a server online.
- **Named origin.** The main remote's usual name.
- **Sync by hand.** Push and pull keep it matched.

## Related terms

- [Git Push](https://learn.benibix.com/term/development/push)
- [Git Pull](https://learn.benibix.com/term/development/pull)
- [Git Clone](https://learn.benibix.com/term/development/clone)
- [GitHub](https://learn.benibix.com/term/development/github)

## Taught in

- [Git Clone, Push and Pull](https://learn.benibix.com/learn/development-version-control/git-clone-push-and-pull): Git and GitHub, 9/13

---

Source: https://learn.benibix.com/term/development/remote
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
