Function: magit-branch-orphan
magit-branch-orphan is an autoloaded, interactive and byte-compiled
function defined in magit-branch.el.
Signature
(magit-branch-orphan BRANCH START-POINT)
Documentation
Create and checkout an orphan BRANCH with contents from revision START-POINT.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-branch.el
;;;###autoload
(defun magit-branch-orphan (branch start-point)
"Create and checkout an orphan BRANCH with contents from revision START-POINT."
(interactive (magit-branch-read-args "Create and checkout orphan branch"))
(magit-run-git "checkout" "--orphan" branch start-point))