Function: magit-fetch-from-upstream
magit-fetch-from-upstream is an autoloaded, interactive and
byte-compiled function defined in magit-fetch.el.
Signature
(magit-fetch-from-upstream ARG1 ARG2)
Documentation
Fetch from the "current" remote, usually the upstream.
If the upstream is configured for the current branch and names an existing remote, then use that. Otherwise try to use another remote: If only a single remote is configured, then use that. Otherwise if a remote named "origin" exists, then use that.
If no remote can be determined, then this command is not available
from the magit-fetch transient prefix and invoking it directly
results in an error.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-fetch.el
;;;###autoload(autoload 'magit-fetch-from-upstream "magit-fetch" nil t)
(transient-define-suffix magit-fetch-from-upstream (remote args)
"Fetch from the \"current\" remote, usually the upstream.
If the upstream is configured for the current branch and names
an existing remote, then use that. Otherwise try to use another
remote: If only a single remote is configured, then use that.
Otherwise if a remote named \"origin\" exists, then use that.
If no remote can be determined, then this command is not available
from the `magit-fetch' transient prefix and invoking it directly
results in an error."
:if (##magit-get-current-remote t)
:description (##magit-get-current-remote t)
(interactive (list (magit-get-current-remote t)
(magit-fetch-arguments)))
(unless remote
(error "The \"current\" remote could not be determined"))
(magit-git-fetch remote args))