Answers for "how to set remote repository"

19

set remote url git

$ 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)
Posted by: Guest on April-22-2020
2

git connect to remote repository

git init
git commit -m "[message]"
git remote add origin "github repository link"
git push -u origin master
Posted by: Guest on August-21-2020

Code answers related to "how to set remote repository"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language