Function: magit-remote-unset-head

magit-remote-unset-head is an autoloaded, interactive and byte-compiled function defined in magit-remote.el.

Signature

(magit-remote-unset-head REMOTE)

Documentation

Unset the local representation of REMOTE's default branch.

Delete the symbolic-ref "refs/remotes/<remote>/HEAD".

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-remote.el
;;;###autoload
(defun magit-remote-unset-head (remote)
  "Unset the local representation of REMOTE's default branch.
Delete the symbolic-ref \"refs/remotes/<remote>/HEAD\"."
  (interactive (list (magit-read-remote "Unset HEAD for remote")))
  (magit-run-git "remote" "set-head" remote "--delete"))