origin remote
The default name git clone gives the remote you cloned from; a convention, not a special keyword.
In more detail
Nothing in Git treats the word origin specially: you can rename it with git remote rename and everything keeps working under the new name. In a fork workflow a second remote, usually called upstream, points at the original project.
Example
git remote rename origin hubRelated terms
- remote — A short name saved in a repository's config that stands for another repository's location, a URL or a path, so you can fetch from and push to it.
- git clone — The command that copies an entire repository, every commit and branch, from a remote to a new folder on your machine.
- fork — A copy of someone else's repository made on a hosting service such as GitHub, under your own account, so you can push to it.
- remote-tracking branch — A local, read-only record of where a branch on a remote pointed the last time you talked to it, such as origin/main.
Taught in
- What A Remote Actually Is — Advanced Git Internals & Distributed Workflows
- Clone, Forks, Push, And The Upstream Branch — Advanced Git Internals & Distributed Workflows
- Fetch Is Not Pull — Advanced Git Internals & Distributed Workflows