0

core.pager如果我使用具有简单 shell 输出的 difftool,如何使用在.gitconfig 部分设置的寻呼机?

4

1 回答 1

3

git help config说:

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.

因此,您只需[pager]在 .gitconfig 中添加一个部分并将其放置difftool = true在那里。

于 2013-12-04T21:08:54.270 回答