Function: magit-reset-soft

magit-reset-soft is an autoloaded, interactive and byte-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

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))