change git repo from exising repo code example Example: change remote url git git remote set-url origin https://hostname/USERNAME/REPOSITORY.git