使用Qt Creator的git push [英] Using git push from Qt Creator

查看:266
本文介绍了使用Qt Creator的git push的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想与集成到Qt中的git工具一起工作。到目前为止,我已经建立了一个项目和git仓库,并且我可以从IDE和命令行提交,状态和所有其他人。但是,当我尝试使用从gui中拉或推,它挂起,60秒后给我这个错误:

 命令' C:/ Program Files(x86)/Git/cmd/git.cmd'在超时限制(60000毫秒)内没有响应。 

当我使用命令提示符输入 push 它会提示我输入我的ssh密码,并在此之后生效。
这是因为Qt IDE无法显示交互式密码输入,或者我需要设置什么?



我正在使用Qt SDK 1.1和msysgit 1.7.4和github,我已经安装了git,可以将git可执行文件添加到我的PATH中。 正如你猜git不能提示你的密码并挂起。典型的解决方法是使用基于密钥的SSH认证。请参阅 http://help.github.com/working-with-key-passphrases/ 了解更多详情。


I want to work with the git tools integrated into Qt. So far I have set up a project and the git repository, and I can commit, status and all others from the IDE and from command line as well. But when I try to use pull or push from the gui it hangs and after 60 seconds gives me this error:

The command 'C:/Program Files (x86)/Git/cmd/git.cmd' did not respond within the timeout limit (60000 ms).

When I use the command prompt for push or pull it prompts me for my ssh passphrase and it works after that. Is this because the Qt IDE can't display that interactive password input or what else do I need to set up?

I'm using Qt SDK 1.1 and msysgit 1.7.4 and github, and I've installed git with the option to add git executables to my PATH.

解决方案

As you guessed git can't prompt for your passphrase and hangs. The typical work-around is to use key-based ssh authentication. See http://help.github.com/working-with-key-passphrases/ for more details.

这篇关于使用Qt Creator的git push的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆