como modificar remote git

C++
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Source

Also in C++: