Command to clear the Git Bash screen

后端 未结 6 943
广开言路
广开言路 2021-01-30 03:28

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

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-30 04:25

    Neither clear nor history -c does the work actually.
    Scroll up, all commands will be visible.

    Solution:
    If you are in Windows 10, and using mintty 2.7.9 (or above ?) for git bash, use Alt + F8 ... this will work.
    Best of luck.
    Happy coding.

    Reference: here (Perhaps it didn't work for Windows 7)

提交回复
热议问题