Mike
Mike

Reputation: 367

IntelliJ Idea & Github: Clone Failed

Yesterday, when I tried to pull from github repository using IntelliJ Idea, it returned me the following error:

Clone Failed. Cannot fork() for git-remote-https: Resource temporarily unavailable.

When I use git from command prompt or from another IDE (like Netbeans), everything is OK. Can you help me?

OS: Windows 10 1511 x64. Git: 2.5.3 cygwin64. Idea: 15.0.2 Ultimate.

Upvotes: 1

Views: 1776

Answers (1)

Ashutosh Jindal
Ashutosh Jindal

Reputation: 18869

Cygwin's forking issue is detailed here

To summarize the fix, try executing the following after closing Intellij AND after making sure that there are no other cygwin processes running:

$CYGWIN_HOME\bin\dash.exe -c '/usr/bin/rebaseall -v'

Also, you might need to install the rebase package by executing Cygwin's setup.exe if you haven't already got it. In this case, the steps are:

a. Install the Cygwin rebase package (if necessary)  
b. shutdown all Cygwin processes  
c. execute the command listed above

This problem has been reported before on the Cygwin mailing list: http://cygwin.com/ml/cygwin/2015-10/msg00269.html, however read through the linked discussion only if the summarized instructions do not fix your problem


How to make sure that there are no Cygwin processes running?

Use Sysinternal's Process explorer as follows:

Microsoft/SysInternals Process Explorer - Go to Find > Find Handle or DLL. In the "Handle or DLL substring:" text box, type the path to the file (e.g. "C:\path\to\file.txt") and click "Search".

Upvotes: 2

Related Questions