Reputation: 68905
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
Upvotes: 4
Views: 29853
Reputation: 71
$ sudo git --version
$ brew install git
$ brew link --overwrite git
Upvotes: 7
Reputation: 68905
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.
Upvotes: 2
Reputation: 10015
You can remove the .git folder from the current cloned repo and reinitialize git again.git init
Now perform git remote add
to add the remote url or edit the .git/config file. Perform git pull/push operations. Hope it helps
Upvotes: 0