繁体   English   中英

从Windows上的Git开始,接收sh.exe“:配置:找不到命令

[英]starting with Git on Windows, receiving sh.exe" : config: command not found

我只是从Git开始。 我已经注册了Github,并在Widnows Server 2008计算机上安装了Windows版Git。 我正在尝试遵循以下说明( http://help.github.com/win-set-up-git/ )。 我可以CD到.ssh。

~/.ssh and I see these files ( id_rsa and id_rsa.pub )

在第2步中,当我尝试运行命令时

config id_rsa id_rsa.pub known_hosts

我得到这个错误

sh.exe": config : command not found

我认为Git / bin文件夹位于我的$ PATH中,

$ echo $PATH
/c/Users/Administrator/bin:.:/usr/local/bin:/mingw/bin:/bin:/c/Program Files (x8
6)/PHP/:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/Syste
m32/WindowsPowerShell/v1.0/:/c/Program Files (x86)/Microsoft SQL Server/100/Tool
s/Binn/:/c/Program Files/Microsoft SQL Server/100/Tools/Binn/:/c/Program Files/M
icrosoft SQL Server/100/DTS/Binn/:/c/Program Files (x86)/Microsoft SQL Server/10
0/Tools/Binn/VSShell/Common7/IDE/:/c/Program Files (x86)/Microsoft SQL Server/10
0/DTS/Binn/:/c/Program Files/MySQL/MySQL Server 5.1/bin:/c/Program Files (x86)/Git/bin

回来了,里面有程序。

我很确定我遵循了默认安装,我可能做错了什么。 如果我应该重新安装,是否只是使用Git进行卸载/重新安装的简单问题?

我试过谷歌,但没有任何与此错误相关的信息。 帮助我stackoverflow,这是我唯一的希望。

这不是您应该执行的命令,而是“ ls”的输出。

暂无
暂无

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

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