Function: magit-reset
magit-reset is an interactive and natively compiled function defined
in magit-reset.el.
Signature
(magit-reset)
Documentation
Reset the HEAD, index and/or worktree to a previous state.
Key Bindings
magit-mode-map X
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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)]])