Function: magit-remote-unset-head
magit-remote-unset-head is an interactive and natively 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
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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"))