Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij 15 + Github - cannot clone repository, getting "Repository Test has Failed" error

I have Intellij 15 and a Github account, and I'm trying to unite the two. I went into settings -> Version Control, and added Github with the Host and username and password. When I click "Test" - it works.

I also have installed the GitHub executable, and added it to the settings as well, and that test was successful as well.

Then I go to my project, select VCS from the top menu, then go to "Checkout from Version Control" ---> "GitHub". It gives me a "Clone Repository Dialog".

This is when things get interesting. In that dialog, it shows "Git Repository URL" as "-------------------------------" - yes, a whole bunch of dashes, and the error at the bottom is "Repository URL is a malformed URL or non-existent directory"... Now - I have not found any settings where I can specify it outside of this dialog box, so I don't know where it's taking the URL from...

Initial error on dialog popup

I enter the correct URL, parent directory, and Directory Name... Then I click on "Test". And it gives me "Repository test has failed". Actually, it gives me that same error regardless of what's in the "Git Repository URL" from that point on - even when I put a bunch of gibberish - it still gives the Test Has failed error.

The error message I get after all subsequent test attempts, regardless of what is actually in the Git Repository URL field

I have also tried going to "Checkout from Version Control" ---> "Git" - with same results.

I have looked online at different forums and tutorials, and nothing seems to help. Any advice would be greatly appreciated!!!

Thank you!

Setup pics - tests successful in the setup: Git Setup (exe location)

GitHub setup (host, uname/pass)

like image 849
elanamig Avatar asked Feb 24 '16 19:02

elanamig


People also ask

How do I clone a GitHub repository in IntelliJ?

You can clone a repository that you want to contribute to directly from IntelliJ IDEA and create a new project based on it. From the main menu, choose Git | Clone. If the Git menu is not available, choose VCS | Get from Version Control. In the Get from Version Control dialog, choose GitHub on the left.

How does GitHub connect to IntelliJ repository?

Press Ctrl+Alt+S to open the IDE settings and select Version Control | GitHub. Select Log In via GitHub. In the browser window that opens, click Create an account and complete the registration process on GitHub. Return to the IntelliJ IDEA settings, click Cancel, and then repeat steps 2 and 3.

Where is Git clone in IntelliJ?

Clone a repository from the main menuFrom the main menu, choose Git | Clone. In the Get from Version Control dialog that opens, select Git from the list. Specify the URL of the remote repository that you want to clone.

How do I link my Git repository to IntelliJ?

Open the project that you want to put under Git. Press Alt+` to open the VCS Operations Popup and select Enable Version Control Integration. Alternatively, from the main menu, select VCS | Enable Version Control Integration. Choose Git as the version control system and click OK.


2 Answers

enter image description here

Setting->Version Control->GitHub check"Clone git repositories using ssh"

like image 165
user7025421 Avatar answered Oct 06 '22 07:10

user7025421


in my case, after I un-check "clone git repositories using SSH" checkbox from settings/Version Control/github; it works on clone task.

like image 23
Peter Avatar answered Oct 06 '22 08:10

Peter