I want to use git in Intellij Terminal but it does not recognize the command. In Command Prompt and Windows power shell the command in recognized (I added the git path in System Environment Variables). I am also aware that Intellij has an GUI integration with Git.
So, can anyone tell me how can I use the git command in the Intellij terminal.
Setup JetBrains(InteliJ, WebStorm, PHPStorm) IDE terminal to use GIT bash
"C:\\Program Files\\Git\\bin\\sh.exe" --login -i
or
"C:\Program Files\Git\bin\bash.exe"
If you have another directory for installed git change it respectively.
The full path is not needed anymore (windows), I just replaced cmd.exe to sh.exe and bingo was his name O
Settings > Tools > Terminal > Shell path sh.exe
For me, it works also but only the path of Git Bash has changed in Windows:
"C:\Users\REPLACE_THIS_BY_YOUR_USER\AppData\Local\Programs\Git\bin\sh.exe" --login -i
you don't need to reinstall anything. Go to:
-File -Settings -Search for terminal - in shell path type: "C:\\Program Files\\Git\\bin\\sh.exe" --login -i (or another directory where you installed Git) Please let me know if that worked fine for you
I do not have to reputation to comment yet,
but following some of the comments where people say it does not work anymore in Win10:
Please make sure you actually take the bash.exe
file inside the bin
folder, not the one outside. Then you don't need the -li
either.
This worked for me:
IntelliJ: File->Settings->Version Control->Git:
On Windows Terminal 'where.exe git.exe'
"C:\Program Files\Git\cmd\git.exe"
This worked for me:
IntelliJ: File->Settings->Version Control->Git:
On the right side, Path to Git executable:
"C:\\Program Files\\Git\\bin\\git.exe"
(Windows) To use Git in IntelliJ terminal without switching terminal emulator to GiT Bash:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.