Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm Terminal - use Git Bash

Goal: use Git Bash as Terminal in PyCharm.

How can I have a normal Bash with Git integrated Terminal in PyCharm?

File path for Git Bash: C:\Users\me\AppData\Local\Programs\Git\git-bash.exe --cd-to-home.

I apply Git Bash in PyCharm Settings: I apply Git Bash in PyCharm Settings.

However, when I click New Session (new Terminal +), it launches as a Window: enter image description here

like image 910
DanielBell99 Avatar asked Dec 03 '25 17:12

DanielBell99


1 Answers

You are pointing at git-bash.exe, which is wrong. You should point at bash.exe which is located inside the bin folder. So your Shell path should be:

"C:\Users\<username>\AppData\Local\Programs\Git\bin\bash.exe" --login

using

"C:\Users\<username>\AppData\Local\Programs\Git\bin\sh.exe" --login

would also work. Also works without --login. Make sure the " are there.

like image 98
M B Avatar answered Dec 05 '25 08:12

M B



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!