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