Prevent git from using pager for short output?

后端 未结 4 676
半阙折子戏
半阙折子戏 2021-01-03 22:11

When I was using Git Bash (Git For Windows) if a command (like git diff) had a short output (I\'m guessing smaller than the terminal\'s height) it would just pr

4条回答
  •  半阙折子戏
    2021-01-03 22:51

    Quick answer: Save the following line to your .bashrc

    export LESS=eFRX
    

    The whys and wherefores are covered in the answers to How do I prevent git diff from using a pager? where the OP is actually looking to remove pagination completely.

提交回复
热议问题