git remote set-url <name> <newurl> [oldurl]

Changes the URLs for the remote

Arguments

NameDescription
name
newurl
oldurl

Options

NameDescription
--pushPush URLs are manipulated instead of fetch URLs
--addInstead of changing existing URLs, new URL is added
--deleteInstead of changing existing URLs, all URLs matching regex <url> are deleted for remote <name>