repo update repo code example
Example 1: git update remote origin
git remote set-url origin new.git.url/here
Example 2: update git repository
$ git pull origin master
git remote set-url origin new.git.url/here
$ git pull origin master