Origin
In one line
Origin is the conventional name for the default remote repository — it is the remote that git clone sets up automatically.
In simple words
origin is not a Git keyword — it is just a conventional name for the default remote. When you run git clone <url>, Git creates a remote named origin pointing to the source URL. This lets you run git push and git pull without specifying the remote name.
You can have multiple remotes with different names. A common setup: origin points to your fork, and upstream points to the original repository you forked from. You push to origin and pull from upstream to stay in sync.
The name "origin" is just a convention — you could name your remote anything with git remote add <name> <url>. But origin is so standard that most Git commands and tutorials assume it.
Example
# clone sets up origin automatically
git clone https://github.com/user/repo.git
git remote -v
# origin https://github.com/user/repo.git (fetch)
# origin https://github.com/user/repo.git (push)
# Push to origin
git push origin mainorigin is the default remote name created by git clone.
Related terms
Related Resources
Related Lessons
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.