How to disconnect local git repo 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
If you remove the .git folder, it will disconnect your local repo from the remote.
rm -rf path/to/local_repo/.git