Skip to content

Instantly share code, notes, and snippets.

Embed
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.

@chennol
Copy link

chennol commented Jun 12, 2018

Really helpful, thanks

@mingzhang6
Copy link

mingzhang6 commented Jun 15, 2018

Thanks !

@TheKingDave
Copy link

TheKingDave commented Jul 24, 2018

Thanks! Really helpful!

@DeruiDENG
Copy link

DeruiDENG commented Sep 25, 2018

Thanks!

@emelyanovIgor
Copy link

emelyanovIgor commented Oct 17, 2018

Thanks_!

@bahmanian
Copy link

bahmanian commented Aug 22, 2019

Thanks dude

@vishal7bohara
Copy link

vishal7bohara commented Nov 2, 2019

You're Awesome!

@Tonacatecuhtli
Copy link

Tonacatecuhtli commented Nov 25, 2019

Thanks :)

@msardic
Copy link

msardic commented Apr 2, 2020

thank you! it's work

@Abszissex
Copy link

Abszissex commented Apr 19, 2020

so awesome, THANKS! :-)

@igorissen
Copy link

igorissen commented Apr 20, 2020

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

Screenshot_11

@cahergil
Copy link

cahergil commented Dec 5, 2020

Thanks!

@aleksgenius
Copy link

aleksgenius commented Dec 31, 2020

Thatks, it's really helps me!

@davidgfitzgerald
Copy link

davidgfitzgerald commented Jan 6, 2021

Cheers

@iamtheasad
Copy link

iamtheasad commented Jan 12, 2021

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

@CKhemmar
Copy link

CKhemmar commented Feb 6, 2021

Thank you very much!

@a-c1998
Copy link

a-c1998 commented Apr 15, 2021

Thanks!

@Chernukha21
Copy link

Chernukha21 commented Apr 26, 2021

Thanks!

@tsundara
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

@AnastasiiaVashchuk
Copy link

AnastasiiaVashchuk commented Jun 4, 2021

thankss!!!!!!

@Jenny1998
Copy link

Jenny1998 commented Jul 20, 2021

Thanks!

@bikashKatwal
Copy link

bikashKatwal commented Jul 29, 2021

thanks

@igorzinar
Copy link

igorzinar commented Oct 13, 2021

Thank you !!!!!

@anasbakro
Copy link

anasbakro commented Nov 14, 2021

Thank you !!!!!

@rlarin
Copy link

rlarin commented Nov 15, 2021

Thanks! 👍

@rlaace423
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 ?

Screenshot_11

It source your .bash_profile.

@fedorgerasimov
Copy link

fedorgerasimov commented Feb 8, 2022

It works. Thank you!

@bamajap
Copy link

bamajap commented Mar 12, 2022

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

@OrShalmayev
Copy link

OrShalmayev commented Mar 22, 2022

Thanks

@Hkrie
Copy link

Hkrie commented Apr 4, 2022

Thanks

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