Function: magit-rebase
magit-rebase is an autoloaded, interactive and byte-compiled function
defined in magit-sequence.el.
Signature
(magit-rebase)
Documentation
Transplant commits and/or modify existing commits.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;; Rebase
;;;###autoload(autoload 'magit-rebase "magit-sequence" nil t)
(transient-define-prefix magit-rebase ()
"Transplant commits and/or modify existing commits."
:man-page "git-rebase"
:value '("--autostash")
["Arguments"
:if-not magit-rebase-in-progress-p
("-k" "Keep empty commits" "--keep-empty")
("-p" "Preserve merges" ("-p" "--preserve-merges")
:if (##magit-git-version< "2.33.0"))
("-r" "Rebase merges" ("-r" "--rebase-merges=")
magit-rebase-merges-select-mode)
("-u" "Update branches" "--update-refs"
:if (##magit-git-version>= "2.38.0"))
(7 magit-merge:--strategy)
(7 magit-merge:--strategy-option)
(7 "=X" magit-diff:--diff-algorithm :argument "-Xdiff-algorithm=")
(7 "-f" "Force rebase" ("-f" "--force-rebase"))
("-d" "Use author date as committer date" "--committer-date-is-author-date")
("-t" "Use current time as author date" "--ignore-date")
("-a" "Autosquash" "--autosquash")
("-A" "Autostash" "--autostash")
("-i" "Interactive" ("-i" "--interactive"))
("-h" "Disable hooks" "--no-verify")
(7 magit-rebase:--exec)
(magit:--gpg-sign)
(magit:--signoff)]
[:if-not magit-rebase-in-progress-p
:description (##format (propertize "Rebase %s onto" 'face 'transient-heading)
(propertize (or (magit-get-current-branch) "HEAD")
'face 'magit-branch-local))
("p" magit-rebase-onto-pushremote)
("u" magit-rebase-onto-upstream)
("e" "elsewhere" magit-rebase-branch)]
["Rebase"
:if-not magit-rebase-in-progress-p
[("i" "interactively" magit-rebase-interactive)
("s" "a subset" magit-rebase-subset)]
[("m" "to modify a commit" magit-rebase-edit-commit)
("w" "to reword a commit" magit-rebase-reword-commit)
("k" "to remove a commit" magit-rebase-remove-commit)]
[("f" "to autosquash" magit-rebase-autosquash)
(6 "t" "to change dates" magit-reshelve-since)]]
["Actions"
:if magit-rebase-in-progress-p
("r" "Continue" magit-rebase-continue)
("s" "Skip" magit-rebase-skip)
("e" "Edit" magit-rebase-edit)
("a" "Abort" magit-rebase-abort)])