Home › Forums › Git Hub › How to exit git log or git diff? › Reply To: How to exit git log or git diff?
July 28, 2021 at 3:53 pm #3560
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).