rename from old origin to origin code example Example: git rename remote git remote rename old-remote-name new-remote-name