Function: magit-reset-keep
magit-reset-keep is an autoloaded, interactive and byte-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
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))