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
Neither clear nor history -c does the work actually. Scroll up, all commands will be visible.
clear
history -c
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)