Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unsupported Git version

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
like image 943
Aniket Thakur Avatar asked Sep 15 '25 23:09

Aniket Thakur


1 Answers

  1. Check git version:
    $ sudo git --version
    
  2. Install the latest version of git via Homebrew:
    $ brew install git
    
  3. Define a new link to git:
    $ brew link --overwrite git
    
like image 131
IBRAHIM AL-KINDI Avatar answered Sep 18 '25 19:09

IBRAHIM AL-KINDI