Reputation: 127
When I use the "git log" command to see the log, it open the log file with "less", which I think is quite inconvenient because you have to enter "Q" to quit the log and its content would disappear from terminal, unlike the output of "cat" command. Is there a way to change the "less" from other command line tools?
Upvotes: 1
Views: 121
Reputation: 489083
The disappearing screen is a separable issue: see my answer to How to display output of `git branch` on-screen in same CLI terminal? Nonetheless, you can replace the pager with any other pager you like, by setting GIT_PAGER
in your environment, or core.pager
in your Git configuration, or log.pager
in your Git configuration.
Upvotes: 1