git add remote ssh code example
Example 1: git set origin
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 2: git add remote
$ git remote add origin https://github.com/user/repo.git
$ git remote -v
> origin https://github.com/user/repo.git (fetch)
> origin https://github.com/user/repo.git (push)
Example 3: set git origin
git remote add origin [email protected]:portfolio/space.space_name.git
Example 4: add remote in git
git remote add origin [email protected]:portfolio/space.space_name.git
Example 5: git how to add remote
git remote add new_repo_name ssh://[email protected]:foo/bar/baz.git
git remote -v
new_repo_name https://second.repo.dev/foo/bar.git (fetch)
new_repo_name https://second.repo.dev/foo/bar.git (push)
origin https://first.repo.dev/bar/baz.git (fetch)
origin https://first.repo.dev/bar/baz.git (push)
Example 6: connect to git repo with ssh-rsa
$ ssh -T [email protected]