git set origin

C#
git remote add origin [email protected]:portfolio/space.space_name.git git remote -v
 git remote set-url origin https://github.com/USERNAME/REPOSITORY.gitgit remote set-url origin new.git.url/heregit remote set-url origin [email protected]:/your-repository.git
Source

Also in C#: