【问题标题】:Error with Git installation [duplicate]Git安装错误[重复]
【发布时间】:2012-09-05 17:13:05
【问题描述】:

我刚刚安装了 Git,打算从我的命令行中使用它。每次我使用 git 命令时,我都会得到以下输出,似乎我得到了正确的输出和一些奇怪的错误。

>C:\Users\Harish Kumar>git --version
>'chcp' is not recognized as an internal or external command,
operable program or batch file.
>git version 1.7.11.msysgit.0
>'chcp' is not recognized as an internal or external command,
operable program or batch file.

这是我的路径变量以防万一:

用户变量:

 C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;C:\Users\Harish Kumar\AppData\Roaming\npm\

系统变量:

 C:\MinGW\bin;C:\Program Files\Java\jdk1.6.0_33\bin;
 C:\Program Files\Java\jre6\bin;C:\Program Files\nodejs\;
 C:\Program Files(x86)\Git\cmd;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;
 C:\Users\Harish Kumar\AppData\Roaming\npm\

【问题讨论】:

标签: git version-control github path


【解决方案1】:

您应该通过 msysgit 使用 git。这将设置所有路径。

【讨论】:

    猜你喜欢
    • 2012-12-11
    • 2015-10-05
    • 1970-01-01
    • 1970-01-01
    • 2015-02-24
    • 2021-04-04
    • 2011-12-22
    • 2017-10-31
    • 1970-01-01
    相关资源
    最近更新 更多