![](/img/trans.png)
[英]Command line application running as a windows service. Getting error 1053
[英]Getting "command not found" error message when running "git log" on Windows
我已經安裝了 git 並且所有命令都可以正常工作,除了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 配置文件,您可以通過運行git config --list --show-origin
找到該文件
檢查您是否有任何看起來不正確的屬性附加到該文件。
對於我的問題,我有:
[core]
fsmonitor ==
哪個錯誤地將 git 屬性設置為不適當的值,導致輸出為: =: =: command not found
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.