不支持的Git版本 [英] Unsupported Git version
问题描述
我将版本库 https://github.com/hornetq/hornetq.git
分配给我的用户ID https:// github.com/aniket91/hornetq.git
。然后我将这个存储库克隆到我的本地机器上。这是成功的
[aniket @ localhost hornetMq] $ git clone https://github.com/aniket91/hornetq.git
/home/aniket/hornetMq/hornetq/.git/
remote中的初始化空Git存储库:计数对象:261664,完成。
remote:压缩对象:100%(74027/74027),完成。
remote:共计261664(delta 156514),重用252367(delta 147734)
接收对象:100%(261664/261664),128.22 MiB | 334 KiB / s,完成。
解决三角洲问题:完成100%(156514/156514)。
现在我想将这个项目导入到我的Intellij IDEA中。所以我没有导入项目并选择了项目根目录。每当我打开项目时,它都会给我以下错误:
6:03:17 PM不支持的Git版本
已配置不支持Git版本:1.7.1.0。
支持的最低版本是1.7.1.1。请更新。
现在我一直在使用命令行git。即使使用我的Android项目的Eclipse ADT,它也能正常工作。那么这里有什么问题?
我是否需要更改Intellij IDEA中的任何设置以便在较低的git版本中使用它?或者,如果我更新git会影响其他项目吗?而且我该如何使用命令行更新当前的git?(也许类似于yum更新的任何内容)。
我真的更喜欢在不改变git版本的情况下提供解决方法。我的git版本确实是1.7.1
[aniket @ localhost hornetMq] $ git version
git version 1.7.1
问题不像升级git到新版本那么简单。我遇到了很多问题。即使在考虑升级git版本的建议后,CentOS repo版本仅为1.7,而最新的稳定版本为1.8.4.3。这导致了兼容性问题。
我不得不下载源代码。构建并安装它。然后将我的Intellij IDEA配置为使用这个新安装的版本。
我在这个帖子。希望它能帮助未来面临类似问题的其他人。
I forked repository https://github.com/hornetq/hornetq.git
so that it comes under my user id https://github.com/aniket91/hornetq.git
. Then i cloned this repository to my local machine. This is successful
[aniket@localhost hornetMq]$ git clone https://github.com/aniket91/hornetq.git
Initialized empty Git repository in /home/aniket/hornetMq/hornetq/.git/
remote: Counting objects: 261664, done.
remote: Compressing objects: 100% (74027/74027), done.
remote: Total 261664 (delta 156514), reused 252367 (delta 147734)
Receiving objects: 100% (261664/261664), 128.22 MiB | 334 KiB/s, done.
Resolving deltas: 100% (156514/156514), done.
Now I wanted to import this project into my Intellij IDEA. So I did import project and selected the project root. Each time I open the project it gives me following error
6:03:17 PM Unsupported Git version
The configured version of Git is not supported: 1.7.1.0.
The minimal supported version is 1.7.1.1. Please update.
I have been using command line git for quite some time now. It works fine even with Eclipse ADT which I use for my android project. So what is the issue here?
Do I need to change any setting in Intellij IDEA to use it with lower git version? Or if I update git will it affect other got projects? And also how do I update present git with command line?(Maybe anything similar to yum update).
I would really prefer a workaround without changing the git version. Any suggestions are appreciated though.
Also my git version is indeed 1.7.1
[aniket@localhost hornetMq]$ git version
git version 1.7.1
The question was not as simple as upgrading git to newer version. I faced a lot of problem. Even after considering the suggestion to upgrade the git version CentOS repo has version 1.7 only whereas latest stable release is 1.8.4.3. This resulted in compatibility issues.
I had to download the sources. Build and install it. Then configure my Intellij IDEA to use this new installed version.
I have documents each step in this post. Hope it helps others facing similar problem in the future.
这篇关于不支持的Git版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!