Function: magit-branch-orphan
magit-branch-orphan is an interactive and natively 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
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-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))