Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经安装了 git 并且所有命令都可以正常工作,除了git log. 当我输入 时git log,会出现此消息:
git log
command not found
这种奇怪行为的可能原因是什么?
$ git --version git version 2.16.1.windows.4 $ which git /mingx64/bin/git
我刚刚找到了解决方案,并想与可能遇到相同错误的人分享。似乎git log使用 PAGER 来显示消息,而我所做的是使用git config --global core.pager ''命令阻止 git 使用 PAGER。
git config --global core.pager ''