git set-url origin push code example Example: how to change remote origin guit $ git remote set-url origin git@github.com:USERNAME/REPOSITORY.git