In Magit, how can I cancel a git process that is taking too long?
If I did something like git push
from a terminal, I could press control-C to cancel. How can I do this from Magit?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityYou can use M-x magit-process-kill
in the Magit process buffer ($
, or M-x magit-process-buffer
jumps to process buffer for the current repository).
magit-process-kill is an interactive Lisp closure in `magit-process.el'.
(magit-process-kill)
Kill the process at point.
Type $ in the Magit Status buffer to open Magit's process buffer , and then kill this buffer. Emacs will ask you whether to kill the process.
M-: (kill-process)
to do so without killing the buffer. See also stackoverflow.com/q/10627289
M-x list-processes
, select the process to be killed (with the cursor or the mouse), press the letterd
to delete the process at point.