简体   繁体   English

当比较多个文件时,我可以中止git difftool吗?

[英]Can I abort git difftool when multiple files are being compared?

I've made a huge mistake. 我犯了一个大错。

I've configured git difftool to use vimdiff , and then I've executed a command that compares the entire repository: 我已经配置git difftool来使用vimdiff ,然后我执行了一个比较整个存储库的命令:

git difftool tag1 tag2

Now the difftool launches vim in diff mode for each file that has changed. 现在,difftool为每个已更改的文件以diff模式启动vim。 When I close vim, it is launched again with the next pair of files. 当我关闭vim时,它会再次与下一对文件一起启动。 In general this is what I want, but can I abort this process somehow if there are too many files in the queue? 一般来说这就是我想要的,但是如果队列中有太多文件,我可以以某种方式中止这个过程吗? I know I can close the terminal, but is there a better way? 我知道我可以关闭终端,但还有更好的方法吗?

Run this: git config --global difftool.prompt true . 运行这个: git config --global difftool.prompt true That will prompt you for each pair of files it opens. 这将提示您打开它的每对文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM