If Git is not installed on Windows, IntelliJ IDEA searches for Git in WSL and uses it from there. Also, IntelliJ IDEA automatically switches to Git from WSL for projects that are opened when you use the \\wsl$ path. Click this button to verify the path to the Git executable file.
Press Ctrl+Alt+S to open the IDE settings and select Version Control | GitHub. Click Add account, and in the dialog that opens, click Sign up for Github. Register your account on the Sign up for GitHub page that opens. Return to the IntelliJ IDEA settings and specify your credentials.
IntelliJ IDEA allows you to check out (in Git terms clone) an existing repository and create a new project based on the data you've downloaded. From the main menu, select Git | Clone, or, if no project is currently opened, click Get from VCS on the Welcome screen.
I just came up against the same problem.
If you choose not to do the full PATH (environment variable) integration when install git (on Windows) you'll need to tell IntelliJ where to find git.cmd
; you can do this in
Settings > Project Settings > Version Control > VCSs > Git
Example in my case it was portable git looks like this on windows
C:\Users\user\AppData\Local\GitHub\PortableGit_d7effa1a4a322478cd29c826b52a0c118ad3db11\cmd\git.exe
Settings > Project Settings > Version Control > git
Path to Git executeable : D:\Program Files (x86)\Git\cmd\git.cmd
Yes, it looks like you need to have git installed on your machine. I just tried to clone a project on github, and I got:
Cannot run program "git.exe" (in directory "C:\Users\Steve\Code"): CreateProcess error=2, The system cannot find the file specified
You can tell IntelliJ where to find git.exe
. This can be done by going into:
Configure->Settings->Version Control->Git->Path to Git Excetuable
Changing the path to something like this:
C:\Users\***YOUR_USER_NAME***\AppData\Local\GitHub\PortableGit_c7e0cbde92ba565cb218a521411d0e854079a28c\cmd\git.exe`
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