$ git checkout main
$ git fetch --all
$ git reset --hard origin/main$ git remote -v
origin [email protected]:netfantom-spb/oldrepository.git (fetch)
origin [email protected]:netfantom-spb/oldrepository.git (push)
$ git remote set-url origin [email protected]:netfantom-spb/newrepository.gitgit submodule add http://...In submodule dir:
git remote set-url --push origin http://...