Git - What is Origin

From EdWiki

GitLab - What is Origin

  • Goals
    Learn about naming remote repositories.
git remote

We see that the cloned repository knows about a remote repository named origin. Let’s see if we can get more information about origin:

git remote show origin

Now we see that the remote repository origin is simply the original hello repository. Remote repositories typically live on a separate machine, possibly a centralized server. As we can see here, however, they can just as well point to a repository on the same machine. There is nothing particularly special about the name “origin”, however the convention is to use the name “origin” for the primary centralized repository (if there is one).