Function: magit-reset-keep

magit-reset-keep is an interactive and natively compiled function defined in magit-reset.el.

Signature

(magit-reset-keep COMMIT)

Documentation

Reset the HEAD and index to COMMIT, while keeping uncommitted changes.

(git reset --keep 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-keep (commit)
  "Reset the `HEAD' and index to COMMIT, while keeping uncommitted changes.
\n(git reset --keep COMMIT)"
  (interactive (list (magit-reset-read-branch-or-commit "Reset %s to")))
  (magit-reset-internal "--keep" commit))