Keep command output in terminal screen I'm new to Mac, when I use terminal, I found some commands like git log behaviours different from Linux.

On Linux, they will print result on screen and exit, leave all result on screen and I can see it when I input another command. Screen after running command like this:

$ git log
commit **********
Author: ******
....

$


But on Mac, they will print result to a "new screen", after exit, all result will be cleaned so I can't see the previous result. Screen after running command looks like this:

$ git log
$ 


Result has been cleared form screen.

Can I change some settings to make it behaviours like linux? Thanks.
The output of git log is sent to a pager for display, which can be configured via git config (variable name is core.pager). By default, less is used, so you may want to compare the value of $LESS on both systems.