Nickolai
Nickolai

Reputation: 1758

How can I launch git-for-windows SDK's git-bash in Windows Terminal?

There's git for Windows, and then there's git for Windows SDK. Both provide a git-bash.exe shell, but when executing the one from the SDK it always opens in its own window. I'd like to be able to use it as a tab in Windows Terminal. Is there a setting I can change to achieve this?

Upvotes: 2

Views: 1521

Answers (2)

Nickolai
Nickolai

Reputation: 1758

I was able to find instructions for this on the MSYS2 site (since git for windows SDK essentially wraps MSYS2): https://www.msys2.org/docs/terminals/

Basically the command is C:\path\to\gitsdk\msys2_shell.cmd -defterm -here -no-start -mingw64

Upvotes: 10

Marcucus _
Marcucus _

Reputation: 88

• for x86

start "" "%SYSTEMDRIVE%\Program Files (x86)\Git\bin\sh.exe" --login

• for x64

start "" "%PROGRAMFILES%\Git\bin\sh.exe" --login

Upvotes: -3

Related Questions