Function: magit-push-current

magit-push-current is an interactive and natively compiled function defined in magit-push.el.

Signature

(magit-push-current TARGET ARGS)

Documentation

Push the current branch to a branch read in the minibuffer.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit-push.el
;;;###autoload
(defun magit-push-current (target args)
  "Push the current branch to a branch read in the minibuffer."
  (interactive
    (if-let ((current (magit-get-current-branch)))
        (list (magit-read-remote-branch (format "Push %s to" current)
                                        nil nil current 'confirm)
              (magit-push-arguments))
      (user-error "No branch is checked out")))
  (magit-git-push (magit-get-current-branch) target args))