diff --git a/README.md b/README.md index 3caf7fd..4c71892 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_654 TILs and counting..._ +_655 TILs and counting..._ --- @@ -160,6 +160,7 @@ _654 TILs and counting..._ - [Clean Out All Local Branches](git/clean-out-all-local-branches.md) - [Clean Up Old Remote Tracking References](git/clean-up-old-remote-tracking-references.md) - [Clone A Repo Locally From .git](git/clone-a-repo-locally-from-git.md) +- [Configuring The Pager](git/configuring-the-pager.md) - [Delete All Untracked Files](git/delete-all-untracked-files.md) - [Determine The Hash Id For A Blob](git/determine-the-hash-id-for-a-blob.md) - [Diffing With Patience](git/diffing-with-patience.md) diff --git a/git/configuring-the-pager.md b/git/configuring-the-pager.md new file mode 100644 index 0000000..95857d6 --- /dev/null +++ b/git/configuring-the-pager.md @@ -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)