Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command to clear the Git Bash screen

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.

like image 868
naresh kumar Avatar asked Sep 09 '13 18:09

naresh kumar


People also ask

What is the command for clearing screen?

In computing, CLS (for clear screen) is a command used by the command-line interpreters COMMAND.COM and cmd.exe on DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows and ReactOS operating systems to clear the screen or console window of commands and any output generated by them.

How do I exit full screen in git bash?

Hit the Escape (ESC) key. Hit the Escape (ESC) key.


2 Answers

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)

To clear entire command history in Git Bash.

history -c 
like image 192
leoshtika Avatar answered Nov 25 '22 14:11

leoshtika


try using reset command, it will absolutely clean your screen but you will still have access to previous commands

reset 
like image 27
Abhijeet Avatar answered Nov 25 '22 14:11

Abhijeet