How to exit git log or git diff?
I'm trying to learn Git with the help of Git Immersion. There's one thing that frustrates me whenever I use git log or git diff:
I can't figure out what to do next when I encounter this END word. I can't type any commands and I end up closing the current bash and open another. How do I type in the next command that I want to use?
To solve exit git diff, you should show that you are in a scrollable output of git log. To exit this you can use:
:q for exit;
:h for help;
Note: if you don’t want to read the output in pager you can use an ENV variable GIT_PAGER to cat or you need to set core.pager to cat.
Hope this will help you to exit git diff.