Function: magit-reset-soft

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

Signature

(magit-reset-soft COMMIT)

Documentation

Reset the HEAD to COMMIT, but not the index and working tree.

(git reset --soft 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-soft (commit)
  "Reset the `HEAD' to COMMIT, but not the index and working tree.
\n(git reset --soft COMMIT)"
  (interactive (list (magit-reset-read-branch-or-commit "Soft reset %s to")))
  (magit-reset-internal "--soft" commit))