我刚刚安装了 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\