xxxxxxxxxx
# set up remote origin (i.e. for the very first time)
git remote add origin https://github.com/USERNAME/REPOSITORY.git
xxxxxxxxxx
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
xxxxxxxxxx
$ 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)
xxxxxxxxxx
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
xxxxxxxxxx
git remote add origin git@git.assembla.com:portfolio/space.space_name.git