remove remote repository git add new code example
Example 1: remove heroku remote
git remote rm heroku
Example 2: remove remote git
# The example will remove the github remote.
# Note that the command will not delete the repository,
# just the local reference.
git remote rm origin
Example 3: how to disconnect local repo from remote master
rm -rf .git
Example 4: delete git origin
git remote rm destination