Menu
Coddy logo textTech

What Is A Remote

Part of the Version Control section of Coddy's Terminal journey — lesson 46 of 58.

So far, every Git command has run inside a single folder on your machine. A remote is a copy of the same repository hosted somewhere else: another machine, a server, or a service like GitHub or GitLab.

Remotes are how teams collaborate. Each developer works in their own local clone, then exchanges commits with the shared remote.

By convention, the primary remote is named origin. It is just a label; you can rename it or have several remotes side by side.

The runtime in this course does not connect to the network, so you will not actually push or pull. But you will use the same git remote commands every developer uses, on a local repo, to learn the moving parts.

challenge icon

Challenge

Beginner

Initialize a fresh repo on the main branch, then list all configured remotes with git remote -v. A new repo has none, so the command should print nothing.

Cheat sheet

A remote is a copy of a repository hosted elsewhere (e.g. GitHub). The primary remote is conventionally named origin.

List all configured remotes:

git remote -v

Try it yourself

Terminal
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Version Control