Phil for Humanity Phil for Humanity
A Guide for the Survival of Humankind and Helping the World, Society, and Yourself.

Git Log Display Output Issue

Have you noticed that the output of the "git log" command is sent to an editor and not sent to standard output?

Well, I have, because it is very difficult to have scripts use this command without the scripts freezing waiting for input from the user. To solve this problem, change the pager variable to directly display to standard out.

You can do this by editing your "~/.bashrc" file to include this line:

export PAGER=cat

You may need to manually create your "~/.bashrc" file in a text editor if it does not already exist.

This change will only take into affect on new Git command prompts, so start a new Git BASH Shell to test it.

by Phil for Humanity
on 04/24/2012

Related Articles
 » The Price of Progress
 » Top 18 Signs Your Department is Being Laid Off
 » Git Repository Permissions