我想从 cmder powershell 使用 git。
错误
Cmder 打印出以下错误:
缺少 git 支持,使用“Install-Module posh-git”安装 posh-git 并重新启动 cmder
如果我运行Install-Module posh-git
cmder 会打印出下一个错误:
- 安装模块 <<<< posh-git
- CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
- 完全限定错误 ID:CommandNotFoundException
我做过/尝试过的事情
- 安装了“Windows 版 Git”
- 将文件替换为
cmder/vendor/git-for-windows
“Git for Windows”中已安装的文件 - 来自 git 的尝试解决方案在 v1.2 中未正确设置 #513和启动时的路径问题 #487
- 手动安装 posh-git
问题
我的 git 命令正在运行,但没有显示我正在处理的分支。
那么我该如何解决这个问题呢?