Git Remote
A remote is a short name that points to another copy of your repository, usually on a server like GitHub, Bitbucket or GitLab.
You use the name instead of the full URL when you fetch, pull and push. The first remote is usually called origin.
Add a remote
Connect your local repository to a repository on GitHub, and give it the name origin:
git remote add origin https://github.com/w3schools-test/hello-world.git
List the remotes
Add -v to see the URL of each remote:
git remote
origin
git remote -v
origin https://github.com/w3schools-test/hello-world.git (fetch)
origin https://github.com/w3schools-test/hello-world.git (push)