How to change the uri url for a remote git repository
- check your remote url
git remote -v
- change you url
git remote set-url origin <new.git.url/here>
see
git help remoteor you can edit.git/configand change the URLs there. You're not in any danger of losing history unless you do something very silly (and if you're worried, just make a copy of your repo, since your repo is your history.)
- you can check it if it change again:
git remote -v
for more information about change remote repository
https://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories