git update local repo from remote master code example
Example 1: git update remote origin
git remote set-url origin new.git.url/here
Example 2: update local repository from origin master and reabse
git pull --rebase origin master
git remote set-url origin new.git.url/here
git pull --rebase origin master