git set remote

C++
git remote set-url origin new.git.url/heregit remote show origin
 git config --get remote.origin.url git remote -v
 git remote set-url origin https://github.com/USERNAME/REPOSITORY.git$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.gitgit remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Source

Also in C++: