Prevent Git From Paging When Not Needed

On some platform / shell combos, you may find Git has gone hog-wild with the paging.  I.e., you may find it pages things like logs & diffs when there is not even a single page of information in the first place.  In this situation, I have found the following Git global config can resolve the issue:

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

https://stackoverflow.com/questions/2183900/how-do-i-prevent-git-diff-from-using-a-pager/2183920

Sharing is caring!

Leave a Comment

Your email address will not be published. Required fields are marked *


Notice: Undefined index: total_count_position in /var/www/wordpress/wp-content/plugins/social-pug/inc/functions-frontend.php on line 46
shares