add remote origin git

C++
 git remote -v
 git remote set-url origin https://github.com/USERNAME/REPOSITORY.gitgit remote set-url origin https://github.com/USERNAME/REPOSITORY.gitgit remote add origin <link>git remote add origin [email protected]:portfolio/space.space_name.gitgit init .
git remote add origin <http/someURL>
git pull origin master$ 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)
Source

Also in C++: