Origin

Origin is the default name Git gives to the remote repository you cloned from. It is just a convenient label for that remote's URL, used in commands like git push origin main.

Git & DevOps

There is nothing special about the word 'origin' — it is simply the conventional name Git assigns automatically when you clone. You could rename it or add other remotes with different names.

When you run git push or git pull without naming a remote, Git typically uses origin by default.

Examples

Bash

git remote get-url origin

Output:

https://github.com/you/repo.git

Learn it in a lesson

See also

Back to the Dictionary