【问题标题】:: The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program: 术语“git”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称
【发布时间】:2021-08-17 07:40:51
【问题描述】:

git : 术语“git”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查拼写 名称,或者如果包含路径,请验证路径是否正确,然后重试。
在 line:1 char:1

【问题讨论】:

  • git 不在 PowerShell 路径中

标签: powershell


【解决方案1】:

在安装 git 和 git bash 时,您可能未选中 Add to Path。我建议您重新安装 git 并通过单击 next>next>....>install 继续使用默认设置。

一侧提示。请不要让您的 github 存储库为空。如果您将来要添加代码,请在第一次推送代码时创建 repo。

【讨论】:

    猜你喜欢
    • 2021-11-01
    • 2021-05-23
    • 2020-11-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多