how to rename a link to origin in git code example Example: change remote url git git remote set-url origin https://hostname/USERNAME/REPOSITORY.git