How to remove git remote


Removing a Git Remote

$ git remote rm <remote-name>
  • example
$ git remote rm origin1

git remote rm remove all reference to remote (on local) , it does not remove the repository

list remote connection

$ git remote -v  
...
origin	https://github.com/OWNER/REPOSITORY.git (fetch)
origin	https://github.com/OWNER/REPOSITORY.git (push)