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

后端 未结 7 916
挽巷
挽巷 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:43

    Alias for a log command where you don't have to click q to to make it go away:

    git config --global alias.hist '!git --no-pager log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short --max-count=10'
    

提交回复
热议问题