You can update the URL for a remote Git repository using the command below.
git remote set-url origin <NEW_GIT_URL>
If the name of the remote you want to update is different, use that instead of ‘origin’ when changing the URL.
You can update the URL for a remote Git repository using the command below.
git remote set-url origin <NEW_GIT_URL>
If the name of the remote you want to update is different, use that instead of ‘origin’ when changing the URL.