🔀Remote Repository
Also known as Remote, Git Remote, origin
A shared copy of a repo on a server. The team swaps its work there.
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.
Example
Emma adds a remote called origin that points to her team's server. Now her commits have somewhere to go.
Why it matters
A remote is how a team shares work. It is also a backup if your laptop dies.
Definition
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)Common mistake
Key takeaways
- 1A copy elsewhere. Usually on a server online.
- 2Named origin. The main remote's usual name.
- 3Sync by hand. Push and pull keep it matched.