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
BeginnerInitialize 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 -vTry it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Version Control
2Getting Started
Initialize A RepositoryThe .git FolderConfigure Your IdentityGit StatusRecap - First Repo8Merging
What Is A MergeFast-Forward MergeThree-Way MergeMerge ConflictsResolve A ConflictRecap - Merge Master11Feature Branch Project
Project OverviewInitialize Main3Tracking Changes
The Staging AreaGit AddGit CommitModifying A Tracked FileGit LogRecap - First Commits6Recipe Site Project
Project OverviewInitialize And Ignore