Function: magit-remote-rename
magit-remote-rename is an autoloaded, interactive and byte-compiled
function defined in magit-remote.el.
Signature
(magit-remote-rename OLD NEW)
Documentation
Rename the remote named OLD to NEW.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-remote.el
;;;###autoload
(defun magit-remote-rename (old new)
"Rename the remote named OLD to NEW."
(interactive
(let ((remote (magit-read-remote "Rename remote")))
(list remote (magit-read-string-ns (format "Rename %s to" remote)))))
(unless (string= old new)
(magit-call-git "remote" "rename" old new)
(magit-remote--cleanup-push-variables old new)
(magit-refresh)))