Search code examples
bashgitterminaloutputgit-log

How to cancel long output in the terminal?


How to exit from the long output of a terminal command or a git command like git log or git branch -a?

How to avoid that I have to press enter untill the output of the command is complete?


Solution

  • git log uses more or less for paging the output.

    You can press q to stop more/less and drop the remaining output.