Have you ever been pushing your site to a remote github repository and then you want to remove that github repo and push it to another remote github repo?
I was teaching a class and we were using a remote repo but I was making additions to the repo and didn’t want to show the progress on the original remote repo. So I used the following code to remove and add a new remote repo.
$ git remote set-url origin
Here is where I found the answer.