24

I have to show my commits using git show c36432. The files are very big and it sometimes takes a long time to go line by line.

What can I do to move fast, like page by page? I am using iterm as terminal on Mac OS X.

jub0bs
  • 60,866
  • 25
  • 183
  • 186
user3214546
  • 6,523
  • 13
  • 51
  • 98

1 Answers1

35

Press the space bar. By default, git uses the less pager to display long output, and the space bar moves down a page at a time in less.

Other less keyboard shortcuts also work, such as typing / followed by a word you want to search for, which can be handy when searching a Git diff or log.

Jimothy
  • 9,150
  • 5
  • 30
  • 33