How to quit git log with the end ?

Published on:

like this, I know press q to quit ,but is there a better way to see the result without press q every time I do this

YES, there is a way

How to exit git log? - Stack Overflow

You’re in the less program, which makes the output of git log scrollable.

Type q to exit this screen. Type h to get help.

If you don't want to read the output in a pager and want it to be just printed to the terminal define the environment variable GIT_PAGER to cat or set core.pager to cat (execute git config --global core.pager cat).

Comments

comments powered by Disqus