简体   繁体   English

使用来自Qt Creator的git push

[英]Using git push from Qt Creator

I want to work with the git tools integrated into Qt. 我想使用集成到Qt中的git工具。 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. 到目前为止,我已经建立了一个项目和git存储库,并且可以从IDE和命令行中提交,状态和所有其他内容。 But when I try to use pull or push from the gui it hangs and after 60 seconds gives me this error: 但是,当我尝试使用来自GUI的pull或push时,它挂起,并在60秒后给出此错误:

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. 当我使用命令提示符进行pushpull它会提示我输入ssh密码,并且此后可以正常工作。 Is this because the Qt IDE can't display that interactive password input or what else do I need to set up? 这是因为Qt IDE无法显示该交互式密码输入还是我需要设置其他内容?

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. 我正在使用Qt SDK 1.1,msysgit 1.7.4和github,并且我已经安装了git,并带有将git可执行文件添加到PATH的选项。

As you guessed git can't prompt for your passphrase and hangs. 如您所料,git无法提示您输入密码并挂起。 The typical work-around is to use key-based ssh authentication. 典型的解决方法是使用基于密钥的ssh身份验证。 See http://help.github.com/working-with-key-passphrases/ for more details. 有关更多详细信息,请参见http://help.github.com/working-with-key-passphrases/

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

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