Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Log Displays Nothing

Tags:

git

I have a number of git repositories (with commits) and each displays nothing when running git log. If I run the command outside a project directory (without a git repository) I get:

fatal: Not a git repository (or any of the parent directories): .git

I tried re-installing Git (I'm now running 1.7.5.4) and re-cloning my repositories to no avail. Any ideas?

like image 930
Kevin Sylvestre Avatar asked Jul 12 '11 23:07

Kevin Sylvestre


1 Answers

git log does not show any commit!

I noticed that not only git log command but also man command does not show anything for me. It turned out that I just needed to set the PAGER environment variable to less or more programs to solve both problems.

export PAGER=less
like image 58
Farhad Maleki Avatar answered Nov 02 '22 15:11

Farhad Maleki