To list the existing remotes, we can use the following command:
git remote -v
#View existing remotes
origin https://github.com/user/repo.git (fetch)
origin https://github.com/user/repo.git (push)
Use the following command to set the remote to a new end point.
git remote set-url origin