How to disconnect a local Git repository from remote master

git remote rm origin should work.


This works:

To remove a remote: git remote remove origin

To add a remote: git remote add origin yourRemoteUrl & then git push -u origin master