This content has been automatically translated from Ukrainian.
In Git, "origin" is the name of a typical alias used to refer to the remote repository from which the clone was made.
When cloning a repository from a remote server, Git automatically creates an "origin" alias that refers to the remote repository URL. This nickname is used to conveniently perform remote repository related operations, such as pull changes, push changes, and retrieve remote repository status information.
For example, when you execute a command git push origin master, you send changes from the local repository to the "master" branch to the remote repository referred to by the "origin" alias.
You can use other alias names to refer to different remote repositories, but "origin" is standard and often used by default..
It is very convenient to use "origin" or any other alias
If your url repository:
https://github.com/company/coolreponame
recording with alias "origin" will be more convenient:
git push origin master
instead
git push https://github.com/company/coolreponame master
And the ability to use other aliases add flexibility to the development process. Various companies have their own repository configurations. And sometimes alias will come in handy and save time.
This post doesn't have any additions from the author yet.