To change the URL of the repository you want your remote to point to, you can use the set-url option, like so:

git remote set-url <remote_name> <remote_repository_url>

Example:

git remote set-url heroku <https://git.heroku.com/fictional-remote-repository.git>