31
10
The pager less doesn't clear the screen as it should do when i use git.
I use less all the time and it usually doesn't leave output in the terminal after quit but when less gets executed via git it leaves the output in the terminal. I'm 100% sure git uses less on my system.
What is wrong with git and how do i fix it? pager = less
in ~/.gitconfig doesn't help. $PAGER is also set to less.
To clarify, git doesn't clear the screen by default, there is nothing wrong with your git. Use @ggustafsson's answer to change the default behaviour. – LeartS – 2014-11-06T10:25:46.927