如何在 Windows 上的 Git Bash 中退出“git diff”的结果?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9929457/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 13:19:45  来源:igfitidea点击:

How do I exit the results of 'git diff' in Git Bash on windows?

gitdiffmsysgit

提问by Travis Northcutt

I'm using Git Bashon Windows 7. When I run git diff, I see this:

我在 Windows 7 上使用Git Bash。当我运行时git diff,我看到:

However, I'm unable to get back to a regular prompt. Pressing Ctrl+Cseems to work, but as soon as I start typing a command, it's covered up with (END)as in that image.

但是,我无法回到常规提示。按Ctrl+C似乎有效,但是一旦我开始输入命令,它就会(END)像该图像中一样被覆盖。

回答by Igor

I think pressing Qshould work.

我认为按下Q应该起作用。

回答by Lucas

None of the above solutions worked for me on Windows 8

以上解决方案都不适用于我在Windows 8 上

But the following command works fine

但以下命令工作正常

SHIFT+ Q

SHIFT+ Q

回答by user2093173

Using WIN+ Qworked for me. Just qalone gave me "command not found" and eventually it jumped back into the git diff insanity.

使用WIN+Q对我有用。只是q一个人给了我“找不到命令”,最终它又跳回到了 git diff 疯狂状态。