1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00

Add Configuring The Pager as a git til

This commit is contained in:
jbranchaud
2018-04-02 09:53:16 -05:00
parent 52bccd2c8d
commit f0cd1427f5
2 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
# Configuring The Pager
When you run Git commands that produce a bunch of output, Git will use a
pager to present the content starting at the beginning, rather than spitting
it all out to the screen at once. This will almost always come in handy for
commands like `git-diff` and `git-log`.
By default, Git uses `less` as its pager.
You can also choose to configure it to something else by updating your git
config file or by running the following command:
```bash
$ git config --global core.pager 'more'
```
If you'd like to turn the pager off altogether, set it to a blank string.
```bash
$ git config --global core.pager ''
```
[source](https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration)