How to update git remotes

To list the existing remotes, we can use the following command:

git remote -v
#View existing remotes
origin (fetch)
origin (push)

Use the following command to set the remote to a new end point.

git remote set-url origin
# Change the 'origin' remote's URL

Making sure that worked ;)

git remote -v
# Verify new remote URL
# origin (fetch)
# origin (push)

Reference: Github