git update url of repo code example Example: git remote url change $ git remote set-url origin https://github.com/USERNAME/REPOSITORY.git