Why do I have to hit 'Q' at the end of 'git log'?

后端 未结 7 926
挽巷
挽巷 2020-12-12 14:00

Consider:

git log -n 20 --pretty=oneline

I am telling Git that I need to see only the last 20 commits. I hate to hit Q to get ri

7条回答
  •  被撕碎了的回忆
    2020-12-12 14:40

    You can "turn off" git paging by telling it to use cat instead of less. Thereafter, pipe the output through less when you do want paging, or head if you just want to see the top, etc.

    git config --global core.pager cat
    

    I turn off automatic paging because I often run git from within emacs, which neither needs nor plays well with less.

提交回复
热议问题