⊗gtPmRmAd 50 of 65 menu

Adding Remote Repositories to Git

Now we need to add an remote repository to our project. The essence of adding is that we need to come up with a name for the remote repository and bind this name to a link to the repository.

In the Git system, there is a command for this purpose remote add, after which the repository name and its link are listed separated by a space. We come up with the repository name ourselves. This will be the name under which the repository will be called on our computer.

Let's choose a common name for our remote repository: origin. Let's add a repository under this name:

git remote add origin https://github.com/user/project.git

As a result of adding, you will have a name origin, which you will use to access this remote repository. However, the repository data will not be downloaded yet. There are other commands for this, which we will learn in the following lessons.

Add your remote repository from GitHub.

English
БеларускаяDeutschEspañolFrançaisPortuguêsРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline