As Diego Pino said, the problem may be related to the git core.pager parameter.
I write this because I had the same problem, but the matter was different. After specifying a hint for setting an empty value in the settings section of git core.pager I lost the ability to use git log , I mean that the output of the command is empty. The purpose of this parameter was to not use a pager and just print everything on stdout, but something went wrong. This was something like this in .gitconfig :
[core] pager = " "
The solution could be to set the core.pager parameter in .gitconfig globally (in the user's home folder .gitconfig ) or in the context of the entire system (in / etc / gitconfig), respectively:
git config
or
sudo git config
I prefer more as a pager for long output, but the default pager in my git installation was less - choose what applies to you.
source share