Command to clear the Git Bash screen

naresh kumar picture naresh kumar · Sep 9, 2013 · Viewed 66.4k times · Source

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.

Answer

leoshtika picture leoshtika · Nov 6, 2013

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