533

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.

1

3 Answers 3

1196

I think pressing Q should work.

12
  • 38
    By the way, it works not only for Windows. Commented Apr 1, 2014 at 5:50
  • 33
    Too bad they can't like -- add other key combinations that are more intuitive to users (like Escape and Ctrl+C) -- or gods forbid, just let it exit normally (and if the user really needs paging, let them pipe it through "less" or "more", etc.). Commented Apr 17, 2015 at 3:51
  • 1
    This worked as expected in Windows 8.1's powershell v4.0, although it took a few seconds to complete.
    – j4v1
    Commented Apr 27, 2015 at 14:25
  • 3
    Sigh. Why can't it just say (END - Press Q to exit)??
    – Phlucious
    Commented Oct 11, 2018 at 20:43
  • 4
    @BrainSlugs83 they keep it in the tradition of linux text editors - as obscure as possible
    – br4nnigan
    Commented Feb 1, 2019 at 14:46
64

None of the above solutions worked for me on Windows 8

But the following command works fine

SHIFT + Q

5
  • 5
    Both Q and Shift+Q worked for me on Windows 8.
    – wecsam
    Commented Jul 21, 2013 at 12:48
  • 3
    SHIFT + Q in MAC Too.
    – Joe L.
    Commented Dec 2, 2013 at 23:06
  • Does not work for me. I am using cmd though...
    – Domi
    Commented Jan 17, 2015 at 0:53
  • This worked for me in Github's Git Shell (poshgit?) on Windows Server 2012 Standard Commented Mar 3, 2015 at 14:08
  • SHIFT-Q worked for me in powershell 3.0 on win7. Q would exit powershell
    – amundell
    Commented Oct 1, 2015 at 13:51
41

Using WIN + Q worked for me. Just q alone gave me "command not found" and eventually it jumped back into the git diff insanity.

3
  • 1
    EXACTLY my problem. I know how to use less, but whatever ships with git on Windows doesn't respond to less commands. ":q", ":z," any other command entered is piped to the command line, instead of interpreted.
    – EKW
    Commented Jul 26, 2016 at 23:52
  • This was the solution on Win7 + Cmder as well.
    – Ello
    Commented Oct 3, 2018 at 5:53
  • 1
    This just brings up my windows search bar. No luck with any answers (I'm using conda within windows powershell)
    – eric
    Commented Mar 6, 2022 at 12:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.