一些git命令在Windows上停止工作



虽然我卸载并重新安装了git for windows(2.27.0.windows.1(,但有些git命令不起作用。

git log 
'': : command not found
git config --list
'': : command not found

我可以在VS代码、git历史记录或通过WSL2 Ubuntu查看git提交历史记录,但不能使用git bash或cmd。

最后我在电脑上解决了这个问题。如果其他人遇到同样的问题,只需运行以下命令即可。

git config --global core.pager less

最新更新