git remove origin from local code example
Example 1: how to remove remote origin git
git remote set-url origin git://new.url.here
Example 2: how to remove remote origin from git repo
git push -u origin master
git remote set-url origin git://new.url.here
git push -u origin master