Function: magit-git-command
magit-git-command is an interactive and natively compiled function
defined in magit.el.
Signature
(magit-git-command COMMAND)
Documentation
Execute COMMAND asynchronously; display output.
Interactively, prompt for COMMAND in the minibuffer. "git " is used as initial input, but can be deleted to run another command.
With a prefix argument COMMAND is run in the top-level directory
of the current working tree, otherwise in default-directory.
Key Bindings
magit-mode-map : magit-mode-map Q
Source Code
;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/magit.el
;;;###autoload
(defun magit-git-command (command)
"Execute COMMAND asynchronously; display output.
Interactively, prompt for COMMAND in the minibuffer. \"git \" is
used as initial input, but can be deleted to run another command.
With a prefix argument COMMAND is run in the top-level directory
of the current working tree, otherwise in `default-directory'."
(interactive (list (magit-read-shell-command nil "git ")))
(magit--shell-command command))