tutorial How can I turn on a pager for the output of git status?



git wiki (1)

You can turn on and off paging of specific commands with the pager.<cmd> setting, in this case pager.status:

pager.<cmd>

If the value is boolean, turns on or off pagination of the output of a particular Git subcommand when writing to a tty. Otherwise, turns on pagination for the subcommand using the pager specified by the value of pager.. If --paginate or --no-pager is specified on the command line, it takes precedence over this option. To disable pagination for all commands, set core.pager or GIT_PAGER to cat.

Run the following:

git config --global pager.status true

or manually add the following to the end of your ~/.gitconfig:

[pager]
  status = true

I want the output of git status to be returned in a less-like environment. This already works for git diff, but not git status. I already tried adding the following to ~/.gitconfig, but it didn't work:

[core]
  pager = less

What am I missing? Thanks.





git