git define remote code example
Example 1: set remote url git
$ 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: git set remote
git remote set-url origin https://github.com/USERNAME/REPOSITORY.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)