On Sun, 7 Jul 2013 04:42:51 -0700 (PDT)
Akira Tsuchiya <akira...@gmail.com> wrote:
> >> I enter the git command below and get the output.
> >> git show <commit has>
> >> When the output length is too big, the command output pauses and
> >> waits for the user’s input of [Enter].
> >> But I want to get the output without any pauses.
> >> For that purpose, which argument should I add to the command?
> > git --no-pager <cmd> will skip the pager.
> > You can also configure the default action to no page (for specific
> > commands). See
> > https://www.kernel.org/pub/software/scm/git/docs/git-config.html -
> > search for pager. Quote:
> > pager.<cmd>
> > If the value is boolean, turns on or off pagination of the output
> > of a particular git subcommand when writing to a tty. Otherwise,
> > turns on pagination for the subcommand using the pager specified by
> > the value of pager.<cmd>. If --paginate or --no-pager is specified
> > on the command line, it takes precedence over this option. To
> > disable pagination for all commands, set core.pager or GIT_PAGER to
> > cat.
> Thank you very much.
Note that Git only spawns the pager if it sees the output is about to
be sent to an interactive terminal, so if you're worried about scripts
(like piping the output of a Git program call to another program) then
stop worrying -- Git will figure out no pager is needed without any
explicit command-line switches.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/groups/opt_out.