Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When I use the "git log" command it is no longer implicitly piping through "less"

Tags:

git

git-log

pager

Before, I could just type

git log

Now, I have to type:

git log | less

to get the same effect. I haven't (intentionally) changed any parameters. I've checked my global config: "~/.gitconfig" and my project Git config ".git/config" but I can't see anything that would cause this. All of the command parameters seem to be for opting out of this.

Furthermore, none of these work either:

git config --add --global core.pager less
git log

or

GIT_PAGER=less git log

or

PAGER=less git log
like image 323
quinn Avatar asked Jan 16 '14 13:01

quinn


People also ask

What does git log command do?

The git log command displays all of the commits in a repository's history. By default, the command displays each commit's: Secure Hash Algorithm (SHA)

Does git log show all branches?

Graph all git branchesDevelopers can see all branches in the graph with the –all switch. Also, in most situations, the –decorate switch will provide all the supplemental information in a formatted and nicely color-coded way.

What does git log mean?

The git log command displays a record of the commits in a Git repository. By default, the git log command displays a commit hash, the commit message, and other commit metadata.

How do I exit git log?

You can press q to exit. git hist is using a pager tool so you can scroll up and down the results before returning to the console.


1 Answers

"did you try unplugging it and plugging it back in" I opened a new terminal and it stopped happening. I am still super curious though what in that other window's environment could be causing this, so I'll leave it open for awhile and if anyone has any ideas please let me know :)

like image 72
quinn Avatar answered Oct 21 '22 13:10

quinn