how to reset and change remote url in git

C++
$ git remote set-url <remote_name> <remote_url>
Source

Also in C++: