git log
does not produces anything even if though ".git/logs/refs/heads
" does contain the log entries of recent commits.
System:
I uninstalled and reinstalled the git in my ubuntu installation.
Linux ap 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
I got the same error. The problem was that I defined a default pager at a wrong location in my .bashrc
:
export PAGER=/usr/bin/more
Running git log
returned no output. I changed the location to /bin/more
and it got fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With