how to remove a git remote origin

C++
git remote remove origin
git remote remove origin# The example will remove the github remote. 
# Note that the command will not delete the repository, 
# just the local reference.
git remote rm origingit remote rm destinationgit remote rm origingit push -u origin master

Source

Also in C++: