change remote repository git

Shell
git remote add origin [email protected]:portfolio/space.space_name.gitgit remote set-url origin [email protected]:/your-repository.gitgit remote add origin <git_url>
Source

Also in Shell: