this git-command changes an existing remote repository URL
git remote set-url <https://github.com/USERNAME/REPO.git>
If you want to move an existing git repo to a new remote location. First, checkout the required repo with all the branches you want to migrate
git clone <repository>
git checkout <branch1>
git checkout <branch2>
Remove existing origin
git remote remove origin
Show that there is no origin:
git remote -v
Add the new remote
git remote add origin <yourrepo>
Push all branches to the new repository
git checkout master
git push origin master
git checkout <branch1>
git push origin <branch1>
...