使用Qt Creator和Git版本控制

编程入门 行业动态 更新时间:2024-10-12 22:30:07
本文介绍了使用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版本控制

本文发布于:2023-10-31 10:50:05,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   Qt   Creator   Git

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!