git remote set-url ..is the command we need.
normally remote has the name origin, which is an alias for a remote repository, set as a key locally in place of the remote repos full url.
to do the change its pretty simple:
$ git remote set-url origin https://urlname.com/USERNAME/REPONAME.git
an interesting feature is we can have multiple remotes (or aliases pointing at them) in your repo... can push or pull to multiple remotes then..but be careful..can get confusing!
git remote add alt different-machine:/path/to/repo