Reference: https://help.github.com/articles/changing-a-remote-s-url/
The git remote set-url command changes an existing remote repository URL.
The git remote set-url command takes the arguments:
An existing remote name. For example, origin or upstream is, and common choices.
A new URL for the remote.
List your existing remotes in order to get the name of the "remote" to "change".
Git remote-v
Origin [email protected]:username/repository.git (FETCH)
Origin [email protected]:username/repository.git (push)
Change your remote ' s URL from SSH to HTTPS with the git remote set-url command.
git remote Set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git
Verify that the remote URL has changed.
Git remote-v
# Verify New Remote URL
Origin Https://github.com/USERNAME/OTHERREPOSITORY.git (Fetch)
Origin Https://github.com/USERNAME/OTHERREPOSITORY.git (push)
Changing a remote ' s URL