set remote url git

Shell
$ git remote add origin https://github.com/user/repo.git
# Set a new remote

$ git remote -v
# Verify new remote
> origin  https://github.com/user/repo.git (fetch)
> origin  https://github.com/user/repo.git (push)$ git remote set-url origin https://github.com/USERNAME/REPOSITORY.gitgit remote set-url origin [email protected]:/your-repository.gitgit remote set-url origin new.git.url/heregit remote add origin [email protected]:portfolio/space.space_name.git
Source

Also in Shell: