Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i

Don't forget the quotes around the command.

Copy link

chennol commented Jun 12, 2018

Really helpful, thanks

Copy link

mingzhang6 commented Jun 15, 2018

Thanks !

Copy link

TheKingDave commented Jul 24, 2018

Thanks! Really helpful!

Copy link

DeruiDENG commented Sep 25, 2018


Copy link

emelyanovIgor commented Oct 17, 2018


Copy link

bahmanian commented Aug 22, 2019

Thanks dude

Copy link

vishal7bohara commented Nov 2, 2019

You're Awesome!

Copy link

Tonacatecuhtli commented Nov 25, 2019

Thanks :)

Copy link

msardic commented Apr 2, 2020

thank you! it's work

Copy link

Abszissex commented Apr 19, 2020

so awesome, THANKS! :-)

Copy link

igorissen commented Apr 20, 2020

I've used only "sh.exe" and it's working perfectly. What's the meaning of --login -i ?


Copy link

cahergil commented Dec 5, 2020


Copy link

aleksgenius commented Dec 31, 2020

Thatks, it's really helps me!

Copy link

davidgfitzgerald commented Jan 6, 2021


Copy link

iamtheasad commented Jan 12, 2021

Wow! It's worked for me....

Copy link

CKhemmar commented Feb 6, 2021

Thank you very much!

Copy link

a-c1998 commented Apr 15, 2021


Copy link

Chernukha21 commented Apr 26, 2021


Copy link

tsundara commented May 28, 2021

Note that :

  • You have to use : C:\Users\youruserid\AppData\Local\Programs\Git\bin\bash.exe
  • Do NOT use : C:\Users\youruserid\AppData\Local\Programs\Git\git-bash.exe

Copy link

AnastasiiaVashchuk commented Jun 4, 2021


Copy link

Jenny1998 commented Jul 20, 2021


Copy link

bikashKatwal commented Jul 29, 2021


Copy link

igorzinar commented Oct 13, 2021

Thank you !!!!!

Copy link

anasbakro commented Nov 14, 2021

Thank you !!!!!

Copy link

rlarin commented Nov 15, 2021

Thanks! 👍

Copy link

rlaace423 commented Nov 24, 2021

Thanks. I've used only "sh.exe" and it's working perfectly. What's the meaning of --login -i ?


It source your .bash_profile.

Copy link

fedorgerasimov commented Feb 8, 2022

It works. Thank you!

Copy link

bamajap commented Mar 12, 2022

Just an FYI, but an alias for --login -i (interactive login) is to simply specify -li

Copy link

OrShalmayev commented Mar 22, 2022


Copy link

Hkrie commented Apr 4, 2022


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment