我已按照此处的说明进行操作:http : //help.github.com/win-set-up-git/ 在我的 Windows 7 机器上设置 git。
我可以使用“git bash”并运行命令。系统提示我输入密钥的密码并且可以成功连接。例如:
$git push -u origin master
Enter passphrase for key '/c/Users/mbj/.ssh/id_rsa':
Everything up-to-date
还有这个:
$ ssh -T git@github.com
Enter passphrase for key '/c/Users/mbj/.ssh/id_rsa':
Hi markbrenigjones! You've successfully authenticated, but GitHub does not provi
de shell access.
$ which ssh
/bin/ssh
但是,当我打开常规的 Windows 命令提示符并运行相同的命令时,我得到了这个:
C:\util\meta_vimrc>git push
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
还有这个:
C:\util\meta_vimrc>ssh -T git@github.com
Permission denied (publickey).
C:\util\meta_vimrc>which ssh
C:\Program Files (x86)\Git\bin\ssh.exe
我如何从非“git bash”提示中得到这个工作?