how to update remote repository git code example
Example 1: git update remote origin
git remote set-url origin new.git.url/here
Example 2: git config remote.origin.url
# change remote url
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git
Example 3: change remote repository git
git remote set-url origin git@accountname.git.beanstalkapp.com:/your-repository.git
Example 4: git update remote origin
git remote set-url origin new.git.url/here
git remote add origin new.git.url/here
Example 5: how to update your local repository
First, navigate to the desired directory:
$ cd ~/Documents/GitHub/DI-NEON-participants
And then type:
$ git remote add upstream https://github.com/NEONS...
Update local repo using git pull with the added directions of
upstream indicating the central repository and master specifying
which branch you are pulling down:
$ git pull upstream master
Example 6: how to update local repo when i make changes to github remote repo
git pull origin master_or_other_branch_name