Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

diff

msysgit

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

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

like image 222
Travis Northcutt Avatar asked Mar 29 '12 16:03

Travis Northcutt


People also ask

How do I close git diff in Windows?

Use ONLY q+enter to exit. It's possible to break out by repeatedly typing q+enter+q+enter+q+enter until the end of time no matter what the console shows.

How do I exit a git bash command?

To exit from bash type exit and press ENTER . If your shell prompt is > you may have typed ' or " , to specify a string, as part of a shell command but have not typed another ' or " to close the string. To interrupt the current command press CTRL-C .


2 Answers

I think pressing Q should work.

like image 67
Igor Avatar answered Sep 19 '22 14:09

Igor


None of the above solutions worked for me on Windows 8

But the following command works fine

SHIFT + Q

like image 42
Lucas Avatar answered Sep 19 '22 14:09

Lucas