Function: magit-push-current
magit-push-current is an autoloaded, interactive and byte-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
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/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))