使用Qt Creator和Git版本控制 [英] Using Qt Creator with Git version control

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

问题描述

我最近安装了git并在我的项目文件夹中初始化了一个git repo。我可以在命令行没有任何问题的情况下进行提交和结帐,但由于某种原因,qt创建者中的gui声明我的连接已超时。我正在运行Windows ...。任何想法?



错误消息:

21:15执行:git status -u
无法获得状态:错误:Git超时



请让我知道是否需要进一步说明!



我已经在qt论坛发布了这个消息,但似乎没有人知道如何解决这个问题。

解决方案

有些虽然:


  • 您是否在命令行中使用Cygwin?如果是这样,Qt Creator可能会失败,因为无法找到 git 或所需的 ssh 可执行文件。如何连接到远程存储库?


  • 我很肯定这是因为Qt Creator无法找到 git

  • code>可执行文件。尝试在Qt Creator的设置中设置 git 可执行文件的确切路径。

I’ve recently installed git and initialized a git repo in my project folder. I can commit and checkout without any issues through the command line, but for some reason the gui in qt creator claims my connection has timed out. Im running windows…. Any ideas?

Error message(s):

21:15 Executing: git status –u Unable to obtain the status: Error: Git timed out

Please let me know if any further clarification is needed!

I've posted this on both qt forums, but no one seems to know how to solve the issue. Thanks in advance!

解决方案

Some thoughs:

  • Are you using Cygwin for the command line? If so, Qt Creator might fail because either git or the required ssh executables can not be found. How do you connect to the remote repository?

  • I'm quite sure this is because Qt Creator can not find the git executable. Try setting the exact path of the git executable in Qt Creator's settings.

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

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