1

我按照https://github.com/magit/magit/wiki/Pushing-with-Magit-from-Windows#git-gui--askpass中的步骤 安装了 ssh-agency 并.emacs 使用

(setenv "SSH_ASKPASS" "git-gui--askpass")

但是如果没有成功,就没有提示出现要求 passphase。我检查了 ssh-agency 的配置,好像没问题。

> Ssh Agency Gui Askpass Executable:
> D:/cygwin64/usr/libexec/git-core/git-gui--askpass

我使用 magit 推送时的错误消息是:

键入 Chi 查看弹出手册,?描述一个论点或动作。保存文件e:/baidu_cloud/new_home/.ssh/agent.env... 写e:/baidu_cloud/new_home/.ssh/agent.env 运行D:/cygwin64/usr/libexec/git-core/git push -v org master:refs/heads/master [2 次] 无法从远程存储库读取。... [点击 $ 查看缓冲区 *magit-process: org_repos 了解详细信息]

然后我检查了是否存在该命令git-gui--askpass,但没有这种东西!

which git-gui--askpass
which: no git-gui--askpass in ...

然后我跑了D:/cygwin64/usr/libexec/git-core/git-gui--askpass,它显示

Application initialization failed: no display name and no $DISPLAY environment variable
Error in startup script: couldn't load file "/usr/bin/tk85.dll": No such file or directory
    while executing
"load /usr/bin/tk85.dll Tk"
    ("package ifneeded Tk 8.5.18" script)
    invoked from within
"package require Tk"
    (file "D:/cygwin64/usr/libexec/git-core/git-gui--askpass" line 8)

我认为我的 gui-git 设置有问题,我安装了 GitExtensions。

4

0 回答 0