简体   繁体   English

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

[英]some of the git commands stopped working on Windows

Although i uninstalled and re-installed git for windows (2.27.0.windows.1) some of the git commands don't work. Although i uninstalled and re-installed git for windows (2.27.0.windows.1) some of the git commands don't work.

git log 
'': : command not found

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

I'm able to see the git commit history on VS Code, git history or through WSL2 Ubuntu but not with git bash or cmd. I'm able to see the git commit history on VS Code, git history or through WSL2 Ubuntu but not with git bash or cmd.

Finally I fixed the issue on my computer.最后我在我的电脑上解决了这个问题。 just in case if someone else experiences the same issue, it was simple as running the below command.以防万一其他人遇到同样的问题,只需运行以下命令即可。

 git config --global core.pager less

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM