remove remoter to repository code example
Example 1: how to remove a git remote origin
git remote remove origin
Example 2: how to remove remote origin from git repo
git push -u origin master
git remote remove origin
git push -u origin master