Jaz Brok
Jaz Brok

Reputation: 241

Setting up IntelliJ IDEA and Git

I'd want to integrate my repo, from GitHub to IDEA 13 (Ultimate).

I set GitHub for windows. And clone my repo to local folder.
But when i try (in IDEA) use "Check out from Version Control", I have error message

Executable is not specified

Of cos' in setting I successfully access to my github account.

Ok, I install git, from git-scm.com, and setup path to Git executable - git.exe.
And now, when I click "Check out from Version Control", error message is:

Error while executing git --version. Exit code...

How can I troubleshoot that new error message.

Upvotes: 4

Views: 10958

Answers (1)

VonC
VonC

Reputation: 1323175

This error message comes from the GitVersion.java#identifyVersion() method (tested in GitVersionTest.java).

throw new ExecutionException("Errors while executing git --version. exitCode=" +
  result.getExitCode() +
  " errors: " + result.getStderr());

The error message can help, but you need to be sure that:

  • git.exe is in your PATH environment variable,
  • you have re-launched IntelliJ IDEA in order for it to inherit the updated PATH.

Upvotes: 1

Related Questions