If you need to change the URL for your git repository you will need to update the url by issuing the following command:
git remote set-url origin YOUR-NEW-REPOSITORY-URL.git
You can verify that the URL has been successfully changed by running:
git remote -v