Function: magit-rebase-onto-pushremote

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

Signature

(magit-rebase-onto-pushremote ARG1)

Documentation

Rebase the current branch onto its push-remote branch.

With a prefix argument or when the push-remote is either not configured or unusable, then let the user first configure the push-remote.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-sequence.el
;;;###autoload(autoload 'magit-rebase-onto-pushremote "magit-sequence" nil t)
(transient-define-suffix magit-rebase-onto-pushremote (args)
  "Rebase the current branch onto its push-remote branch.

With a prefix argument or when the push-remote is either not
configured or unusable, then let the user first configure the
push-remote."
  :if #'magit-get-current-branch
  :description #'magit-pull--pushbranch-description
  (interactive (list (magit-rebase-arguments)))
  (pcase-let ((`(,branch ,remote)
               (magit--select-push-remote "rebase onto that")))
    (magit-git-rebase (concat remote "/" branch) args)))