git set origin
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
git set origin
git remote -v
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
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)
set git origin
git remote add origin [email protected]:portfolio/space.space_name.git
github add new origin
git init .
git remote add origin <http/someURL>
git pull origin master
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us