Function: magit-rebase-branch

magit-rebase-branch is an autoloaded, interactive and byte-compiled function defined in magit-sequence.el.

Signature

(magit-rebase-branch TARGET ARGS)

Documentation

Rebase the current branch onto a branch read in the minibuffer.

All commits that are reachable from HEAD but not from the selected branch TARGET are being rebased.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload
(defun magit-rebase-branch (target args)
  "Rebase the current branch onto a branch read in the minibuffer.
All commits that are reachable from `HEAD' but not from the
selected branch TARGET are being rebased."
  (interactive (list (magit-read-other-branch-or-commit "Rebase onto")
                     (magit-rebase-arguments)))
  (message "Rebasing...")
  (magit-git-rebase target args)
  (message "Rebasing...done"))