Function: magit-reset
magit-reset is an autoloaded, interactive and byte-compiled function
defined in magit-reset.el.
Signature
(magit-reset)
Documentation
Reset the HEAD, index and/or worktree to a previous state.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-reset.el
;;; Commands
;;;###autoload(autoload 'magit-reset "magit" nil t)
(transient-define-prefix magit-reset ()
"Reset the `HEAD', index and/or worktree to a previous state."
:man-page "git-reset"
[["Reset"
("b" "branch" magit-branch-reset)
("f" "file" magit-file-checkout)]
["Reset this"
("m" "mixed (HEAD and index)" magit-reset-mixed)
("s" "soft (HEAD only)" magit-reset-soft)
("h" "hard (HEAD, index and worktree)" magit-reset-hard)
("k" "keep (HEAD and index, keeping uncommitted)" magit-reset-keep)
("i" "index (only)" magit-reset-index)
("w" "worktree (only)" magit-reset-worktree)]])