I am not able to clone a repository from Intellij IDEA and fails with the below error, shown in the image.
However, I am able to clone the repository from command prompt successfully, shown in the below image.
Note that I have added the public key file to the Bitbucket successfully. Also, the below image shows the contents of the 'config' file as well.
As suggested in the comments, I have run the which git
command and it points to the location /usr/local/bin/git
as shown in the below image:
Also, IntelliJ's settings for 'Version Control' > Git also points to the same location i.e., /usr/local/bin/git
as shown in the below image:
I have also provided the Intellij console tab error details in the below image:
I had exactly the same problem recently using SSH as authentication method.
The solution for me was to create a config
file inside ~/.ssh
(or modify it, if you already have one).
Inside this config
file add:
Host github.com
User git
IdentityFile ~/.ssh/name_of_your_private_key
Then chmod 600
to the config
file.
Of course you can replace Host
and User
with values according to any particular case.
Hope this helps ;)
Open the Console tab of the Version control window in order to see what command is launched, and its full error message.
Regarding SSH URL, relaunch IntelliJ IDEA after exporting:
export GIT_SSH_COMMAND='ssh -Tv'
You will see in that console tab much more details regarding the clone attempt and its errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With