71

While using mysysgit under Windows, I do not know how to regain control of the console windows after running git log in Git Bash. This seems simple yet I cannot find the key combination or command, so I find myself having to close the console window and relaunching a new instance of Git Bash to interact with git.

What is the key combination and/or command I need to exit the log viewer?

XBigTK13X
  • 2,445
  • 8
  • 26
  • 39
  • 31
    Press the letter "q". – Adam Vandenberg Jan 07 '11 at 16:33
  • 4
    In case you're curious, you're looking at the default pager, called "less". Type `man less` in Git Bash or check out http://unixhelp.ed.ac.uk/CGI/man-cgi?less for more key bindings. – peterjmag Jan 07 '11 at 17:23
  • @peterjmag – thanks! I wouldn't have even thought to consider that it's using the "default pager", tho that makes a lot of sense considering the platform on which Git was first developed. – Kenny Evitt Jul 12 '13 at 16:07
  • "q" worked for me, specifically after paging through lengthy man pages ("man ls" for example). wacky bash shell. – Shawn J. Molloy Mar 24 '15 at 19:04

3 Answers3

87

As said in the comments already, press the Q key.

Sardaukar
  • 23,924
  • 4
  • 26
  • 30
2

Accepted answer worked for me: type 'q'

An alternate answer: Ctrl - z

TT--
  • 2,186
  • 21
  • 41
0

If q does not work just type quit and enter. This worked for me.

-edit This was in power shell though.

Gayan Jayasingha
  • 680
  • 1
  • 16
  • 30