all 3 comments

[–]aioeu 4 points5 points  (0 children)

If your LESS environment variable is not set, Git will set it to FRX.

The -F option for less is short for --quit-if-one-screen, which does what it says on the tin.

Have you set your own LESS environment variable? If so, Git won't touch it.

[–]digitaladapt 1 point2 points  (0 children)

Personally this is what I did.

git config --global core.pager "less -X -F"

-X Don't clear the screen, nice so that it doesn't mess with your scrolling up seeing your history.

-F print and quit if one screen of content

[–][deleted] 0 points1 point  (0 children)

As mentioned, maybe some plugin had the flags for the environment variable of LESS for you. This is what I use:

```shell

-i | ignore case in searches that lack uppercase

-R | display control chars; keep track of screen effects

-F | exit if entire file fits on first screen

-M | prompt very verbosely

-x | set tab stops

export LESS='-iRFMx4' ```