简体   繁体   English

如何使 git 日志 output 不打印到屏幕上

[英]How to make git log output not printed to screen

When I use 'git log', and then type 'q', I still see the logs on my screen as like it was printed to the screen.当我使用“git log”,然后输入“q”时,我仍然在屏幕上看到日志,就像打印到屏幕上一样。

I want to do it like in vim, when I open a file in vim and then close it I don't see file content, I see only the vim command.我想像在 vim 中那样做,当我在 vim 中打开一个文件然后关闭它时,我看不到文件内容,我只看到 vim 命令。 How to let git log not showing the log after exiting?如何让git日志退出后不显示日志? (like in less command) (就像在更少的命令中)

Use less utility, it would look like:使用较少的实用程序,它看起来像:

$ git log | less

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM