清除Git Bash屏幕的命令 [英] Command to clear the Git Bash screen

查看:555
本文介绍了清除Git Bash屏幕的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git中是否有任何命令可以清除屏幕.例如在执行很多代码后在窗口命令行中,如果键入cls,则它将清除所有先前的代码.所以我想要在Git中使用相同类型的功能.这样任何人都可以告诉我命令名称.

Is there any command in Git, that clear the screen. for example in window command line after execute a lot of code, if you type cls, then it will clear all the previous code. so i want the same type of functionality in Git. so can anybody will tell me the command name.

推荐答案

实际上,您正在寻找Unix用户环境命令

Actually you are looking for a Unix user environment command

clear

或者您可以使用键盘快捷键

or you can use the keyboard shortcut

ctrl+l

http://en.wikipedia.org/wiki/Clear_(Unix)

要清除Git Bash中的整个命令历史记录.

To clear entire command history in Git Bash.

history -c

这篇关于清除Git Bash屏幕的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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