The GitHub engagement approach to development is based on the commits of publishing from your local area to GitHub for other people to view, fetch, and update
Remote URL is Git's way of saying "the place where your code is stored." That URL may be your repository on GitHub, or another user's fork, or even a completely different server.
You can only push to two types of URL addresses:
Git associates a remote URL with a name, and your default remote is usually called the origin.
You can use the command “git remote add” to match a remote URL with a name. For example, you can type the following into the command line:
You can use the git remote add command to match a remote URL with a name. For example, you'd type the following in the command line:
git remote add origin
To add a new remote repository, use the “git remote add” command, in the directory where your repository is stored. Use the command on the terminal.
The git remote add command takes two arguments:
$ git remote add origin https://github.com/user/repo.git
# Set a new remote
$ git remote -v
# Verify new remote
> origin https://github.com/user/repo.git (fetch)
> origin https://github.com/user/repo.git (push)
The git “remote set-url”: command changes the existing URL of the remote repository.The command takes two arguments: