how to change the local repository to a remote repository github code example Example: how to change git remote origin git remote set-url origin new.git.url/here