Re: Cygwin + git log = no pager!
- From
- Robert Dailey <rcdailey.lists@gmail.com>
- Date
- Feb 23, 2014, 20:33 UTC
- Message-ID
- <CAHd499AbsUwmA0HWu31jW2n8eUNnRtU7URKPfBU7EhU6-F48zg@mail.gmail.com>
- In-Reply-To
- <53085434.4060106@gmail.com>
On Sat, Feb 22, 2014 at 1:39 AM, Chris Packham <judge.packham@gmail.com> wrote:
Show 14 quoted lines
> On 22/02/14 18:18, Robert Dailey wrote: >> So it seems that the pager doesn't work by default when running `git >> log` from Cygwin like it does in msysgit for Windows. >> >> I know I can pipe to `less` but that requires the additional typing >> obviously. Does anyone know how I can get the pager to work in Cygwin >> for git log, reflog, and other commands like it does in msysgit? >> >> Thanks in advance. > > Add GIT_PAGER=less to your environment. I don't know if you were using > the cygwin packaged git or building from source but I'm surprised the > pager is not set by default as you actually have to define the use of > something other than less.
Thanks for the response. I did set this environment variable in my .bashrc like so:
export GIT_PAGER=less
However after I do a 'git log' it is just spitting it out all at once and not entering the pager.