Function: magit-reset-index
magit-reset-index is an interactive and natively compiled function
defined in magit-reset.el.
Signature
(magit-reset-index COMMIT)
Documentation
Reset the index to COMMIT.
Keep the HEAD and working tree as-is, so if COMMIT refers to the
head this effectively unstages all changes.
(git reset COMMIT .)
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-reset.el
;;;###autoload
(defun magit-reset-index (commit)
"Reset the index to COMMIT.
Keep the `HEAD' and working tree as-is, so if COMMIT refers to the
head this effectively unstages all changes.
\n(git reset COMMIT .)"
(interactive (list (magit-read-branch-or-commit "Reset index to")))
(magit-reset-internal nil commit "."))