Search code examples
version-controlgit-svngit-bash

Command to clear the Git Bash screen, including output buffer


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.


Solution

  • 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