Rename a remote
If you need to change the url of a remote use the git remote set-url
command. For example,
git remote set-url origin <url-to-git-repository>
You can then check it has changed by running
git remote -v
This will output the remotes for the repository.