How to change git remote


change a Git Remote

$ git remote set-url <name> <new url>
  • example
$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git

list remote connection

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