Skip to main content
added 216 characters in body
Source Link
knittl
  • 269.2k
  • 59
  • 339
  • 405

This is controlled by the -F (--quit-if-one-screen) option to less.

Git uses the options FRSX for/of less by default, if none are specified by the $LESS or $GIT_PAGER environment variables. To change it, specify the core.pager option and set it to RSX:

git config --global core.pager 'less -+F' 

Older versions of Git used to recommend the following in their documentation:

git config --global core.pager 'less -+$LESS -RSX' 

This is controlled by the -F (--quit-if-one-screen) option to less.

Git uses the options FRSX for less by default. To change it, specify the core.pager option and set it to RSX:

git config --global core.pager 'less -+$LESS -RSX' 

This is controlled by the -F (--quit-if-one-screen) option to less.

Git uses the options FRSX for/of less by default, if none are specified by the $LESS or $GIT_PAGER environment variables. To change it, specify the core.pager option and set it to RSX:

git config --global core.pager 'less -+F' 

Older versions of Git used to recommend the following in their documentation:

git config --global core.pager 'less -+$LESS -RSX' 
Source Link
knittl
  • 269.2k
  • 59
  • 339
  • 405

This is controlled by the -F (--quit-if-one-screen) option to less.

Git uses the options FRSX for less by default. To change it, specify the core.pager option and set it to RSX:

git config --global core.pager 'less -+$LESS -RSX'