git add remote add code example
Example 1: 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 2: adding remote origin git
git remote add origin <link>
Example 3: git connect to remote repository
git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master
Example 4: add remote in git
git remote add origin [email protected]:portfolio/space.space_name.git