Git: git remote add command

git remote add command is a basic git command which add a remote repository as an origin of your local repository. The basic idea is that the remote repository is the final working repository which is considered by everyone and your local repository is your local copy holding your changes.

Introduction

Using the command git remote -v, we can find out the remote repository for your local repository. As we have not added any remote origin repository, it will provide no information.

Let us consider this repository https://github.com/OpenGenus/test as our origin repository. Let us add it to our local repository. The format of the command is: