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