Ani*_*kur 4 git github intellij-idea
我分叉了存储库https://github.com/hornetq/hornetq.git,以便它位于我的用户 id 下https://github.com/aniket91/hornetq.git。然后我将此存储库克隆到我的本地计算机。这样就成功了
[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.
Run Code Online (Sandbox Code Playgroud)
现在我想将这个项目导入到我的 Intellij IDEA 中。所以我导入了项目并选择了项目根目录。每次我打开项目时都会出现以下错误
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.
Run Code Online (Sandbox Code Playgroud)
我已经使用命令行 git 一段时间了。即使使用我用于 android 项目的 Eclipse ADT,它也能正常工作。那么这里的问题是什么?
我是否需要更改 Intellij IDEA 中的任何设置才能将其与较低的 git 版本一起使用?或者如果我更新 git 会影响其他项目吗?另外我如何使用命令行更新当前的 git?(也许类似于 yum update 的东西)。
我真的更喜欢一个不改变 git 版本的解决方法。如有任何建议,我们将不胜感激。
另外我的git版本确实是1.7.1
[aniket@localhost hornetMq]$ git version
git version 1.7.1
Run Code Online (Sandbox Code Playgroud)
小智 6
$ sudo git --version
Run Code Online (Sandbox Code Playgroud)
$ brew install git
Run Code Online (Sandbox Code Playgroud)
$ brew link --overwrite git
Run Code Online (Sandbox Code Playgroud)