All original content is created in Ukrainian. Not all content has been translated yet. Some posts may only be available in Ukrainian.Learn more

What is Origin in Git?

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.

03 May 17:46

What if macOS doesn't have a webcam?

meme code
meme code@memecode
03 May 18:48

Як отримати випадкове логічне значення true чи false у Ruby?

meme code
meme code@memecode
06 May 09:19

How to disable File Upload in Trix editor?

meme code
meme code@memecode
10 May 17:40

Як використовувати кольори шістнадцяткового коду CSS з альфа значенням?

meme code
meme code@memecode
16 May 22:17

Як видалити проміжок між inline та inline-block елементами?

meme code
meme code@memecode
17 May 18:52

Що таке loop у Javascript? Як працють цикли for та while у Javascript?

meme code
meme code@memecode
22 May 16:26

В чому різниця <%, <%=, <%# та -%> у ERB шаблонах (Ruby on Rails)?

meme code
meme code@memecode
23 May 06:57

What is debugging?

meme code
meme code@memecode
23 May 07:41

What are attr_accessor, attr_reader and attr_writer in Ruby? Why are they needed?

meme code
meme code@memecode
23 May 11:16

Як працює has_many through зв'язок (many to many) у Ruby on Rails?

meme code
meme code@memecode