我怎样才能快速向下滚动git命令的输出? [英] How can I quickly scroll down the output of git commands?

查看:128
本文介绍了我怎样才能快速向下滚动git命令的输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用 git show c36432 来显示我的提交。这些文件非常大,有时需要很长时间才能逐行进行。



我能做些什么来快速移动,如逐页?我在Mac OS X上使用 iterm 作为终端。

解决方案

按空间吧。默认情况下,git使用 less 分页器来显示长输出,并且空格键一次在小于

其他少于键盘快捷键也起作用,例如键入 / 后跟一个你想要搜索的词,这在搜索Git diff或日志时可能非常方便。


I have to show my commits using git show c36432. The files are very big and it sometimes takes a long time to go line by line.

What can I do to move fast, like page by page? I am using iterm as terminal on Mac OS X.

解决方案

Press the space bar. By default, git uses the less pager to display long output, and the space bar moves down a page at a time in less.

Other less keyboard shortcuts also work, such as typing / followed by a word you want to search for, which can be handy when searching a Git diff or log.

这篇关于我怎样才能快速向下滚动git命令的输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆