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
# set up remote origin (i.e. for the very first time)
git remote add origin https://github.com/USERNAME/REPOSITORY.git
xxxxxxxxxx
git remote add => ADDS a new remote.
git remote set-url => UPDATES existing remote.