You*_*ker 7 eclipse git github egit
我一直试图让gitHub和Egit合作,但没有成功.我安装了github的软件包并以这种方式制作了一个SSH密钥,但Egit没有提示密码,它给了我这个错误:
Cannot get remote repository refs.
Reason: ssh://git@github.com:22: passphrase for C:\Documents and Settings\User\.ssh\id_rsa
Run Code Online (Sandbox Code Playgroud)
我在推送菜单中有这些设置:
URI: ssh://git@github.com/YoungMaker/<projectName>.git
host: github.com
Repository path: /YoungMaker/<projectName>.git
protocol: SSH
port <BLANK>
User: git
password <blank>
Run Code Online (Sandbox Code Playgroud)
我也尝试了GIT_SSH环境变量,并将其设置为C:\ Documents and Settings\User.ssh,以及plink.exe(我不知道那是什么(显然是一些.exe))
尝试从gitHub GUI推送后,我收到此错误.它很奇怪,因为我有一个C:\ Documents and Settings\User.ssh目录,其中包含一个配置文件和一个id_rsa密钥.
Pushing to git@github.com:YoungMaker/GitTester.git
error: cannot spawn C:\Documents and Settings\User\.ssh: No such file or directory
fatal: unable to fork
Run Code Online (Sandbox Code Playgroud)
老问题,但供将来参考:
确保您已设置推送遥控器.当我同时获得无法获取远程存储库refs -problems("... Passphrase for ..."和"Press ..."对话框中的"Auth fail")时,它对我有用.
只要你已经:
......这是你怎么做的:
如果您创建了受私钥保护的私钥,则需要该密码,如“ GitHub:SSH 密钥密码”中所述。
但这意味着您需要 SSH 代理来为您提供该密码。
如果 Egit 在推送时没有提示,这可能意味着:
另请参阅Vogella 的教程:

| 归档时间: |
|
| 查看次数: |
6714 次 |
| 最近记录: |