git remote add wrong thing how to remove

C++
git remote set-url origin https://github.com/your/repository

Source

Also in C++: