希望你已经找到了解决方案,对于git-confirm,我认为Magit可以处理它,详见magit-process-yes-or-no-prompt-regexp。如果有一些提示无法由Magit处理,请尝试magit-process-prompt-functions。更多信息请参见https://github.com/magit/magit/issues/3845。