how to manually set you local repo to a new remote repo code example
Example 1: change remote repository git
git remote set-url origin [email protected]:/your-repository.git
Example 2: set git origin
git remote add origin [email protected]:portfolio/space.space_name.git