Answers for "how to add a git origin"

C#
2

how to add new origin in git

below is used to a add a new remote:

git remote add origin [email protected]:User/UserRepo.git
below is used to change the url of an existing remote repository:

git remote set-url origin [email protected]:User/UserRepo.git
below will push your code to the master branch of the remote repository defined with origin and -u let you point your current local branch to the remote master branch:

git push -u origin master
Posted by: Guest on June-18-2021
18

adding remote origin git

git remote add origin <link>
Posted by: Guest on April-18-2020
2

git add origin command

# To add origin
$ git remote add origin <github repo link>
Posted by: Guest on February-03-2021

Code answers related to "how to add a git origin"

C# Answers by Framework

Browse Popular Code Answers by Language