Changing a remote's URL The "$ git remote set-url" command changes an existing remote repository URL. git remote set-url origin https://github.com/USERNAME/OTHERREPOSITORY.git