Git Bash opening in separate window in Windows Terminal #17734

Closed
opened 2026-01-31 05:51:45 +00:00 by claunia · 8 comments
Owner

Originally created by @kausikds on GitHub (Jun 17, 2022).

Windows Terminal version

1.13.11432.0

Windows build number

10.0.22000.0

Other Software

When I try to open Git Bash as a Tab inside Windows Terminal instead it's opening the actual Git Bash window separately.

Steps to reproduce

Screenshot 2022-06-18 005345

Expected Behavior

Shows above

Actual Behavior

Show above

Originally created by @kausikds on GitHub (Jun 17, 2022). ### Windows Terminal version 1.13.11432.0 ### Windows build number 10.0.22000.0 ### Other Software When I try to open Git Bash as a Tab inside Windows Terminal instead it's opening the actual Git Bash window separately. ### Steps to reproduce ![Screenshot 2022-06-18 005345](https://user-images.githubusercontent.com/32932853/174389299-e713e786-0454-4aa4-8d1b-cffa59134e7d.png) ### Expected Behavior Shows above ### Actual Behavior Show above
claunia added the Needs-TriageIssue-BugNeeds-Tag-FixNeeds-Attention labels 2026-01-31 05:51:46 +00:00
Author
Owner

@DHowett commented on GitHub (Jun 17, 2022):

How have you configured our git bash profile? Is it set to launch in mintty? That window is mintty.

@DHowett commented on GitHub (Jun 17, 2022): How have you configured our `git bash` profile? Is it set to launch in mintty? That window is mintty.
Author
Owner

@kausikds commented on GitHub (Jun 17, 2022):

I'm adding every profile there, ubuntu WSL, PowerShell, cmd, etc., and those are working fine by default but only git bash behaving like this.

@kausikds commented on GitHub (Jun 17, 2022): I'm adding every profile there, ubuntu WSL, PowerShell, cmd, etc., and those are working fine by default but only git bash behaving like this.
Author
Owner

@elsaco commented on GitHub (Jun 17, 2022):

@iKausik Git-for-Windows has it's own terminal profile fragment located at C:\ProgramData\Windows Terminal\Fragments\Git\git-bash.json which is added to the terminal.

git-bash.json content, use it for inspiration:

{
  "profiles": [
  { "guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
  "name": "Git Bash",
  "commandline": "C:/Program Files/Git/bin/bash.exe -i -l",
  "icon": "C:/Program Files/Git/mingw64/share/git/git-for-windows.ico",
  "startingDirectory": "%USERPROFILE%"
  }]
}
@elsaco commented on GitHub (Jun 17, 2022): @iKausik `Git-for-Windows` has it's own terminal profile fragment located at `C:\ProgramData\Windows Terminal\Fragments\Git\git-bash.json` which is added to the terminal. `git-bash.json` content, use it for inspiration: ``` { "profiles": [ { "guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}", "name": "Git Bash", "commandline": "C:/Program Files/Git/bin/bash.exe -i -l", "icon": "C:/Program Files/Git/mingw64/share/git/git-for-windows.ico", "startingDirectory": "%USERPROFILE%" }] } ```
Author
Owner

@DHowett commented on GitHub (Jun 18, 2022):

I do not want to seem like a broken record, but we need to know how you have configured your git bash profile to help you.

There are many programs inside the git folder. Some of them launch "mintty," that separate terminal window that you are seeing.
We need to figure out if you are using one of those programs.

@DHowett commented on GitHub (Jun 18, 2022): I do not want to seem like a broken record, but we need to know _how you have configured your git bash profile_ to help you. There are many programs inside the `git` folder. Some of them launch "mintty," that separate terminal window that you are seeing. We need to figure out if you are using one of those programs.
Author
Owner

@FLUENTYAN commented on GitHub (Jun 19, 2022):

I'm adding every profile there, ubuntu WSL, PowerShell, cmd, etc., and those are working fine by default but only git bash behaving like this.

This line should be like this "commandline": "C:/Program Files/Git/bin/bash.exe -i -l",

rather than this "commandline": "C:/Program Files/Git/git-bash.exe -i -l"

@FLUENTYAN commented on GitHub (Jun 19, 2022): > I'm adding every profile there, ubuntu WSL, PowerShell, cmd, etc., and those are working fine by default but only git bash behaving like this. This line should be like this "commandline": "C:/Program Files/Git/bin/bash.exe -i -l", rather than this "commandline": "C:/Program Files/Git/git-bash.exe -i -l"
Author
Owner

@kausikds commented on GitHub (Jun 20, 2022):

I'm adding every profile there, ubuntu WSL, PowerShell, cmd, etc., and those are working fine by default but only git bash behaving like this.

This line should be like this "commandline": "C:/Program Files/Git/bin/bash.exe -i -l",

rather than this "commandline": "C:/Program Files/Git/git-bash.exe -i -l"

It's working now. thanks @FLUENTYAN

@kausikds commented on GitHub (Jun 20, 2022): > > I'm adding every profile there, ubuntu WSL, PowerShell, cmd, etc., and those are working fine by default but only git bash behaving like this. > > This line should be like this "commandline": "C:/Program Files/Git/bin/bash.exe -i -l", > > rather than this "commandline": "C:/Program Files/Git/git-bash.exe -i -l" It's working now. thanks @FLUENTYAN
Author
Owner

@kausikds commented on GitHub (Jun 20, 2022):

MINGW64__c_WINDOWS_System32 20-06-2022 03_07_31 PM

@kausikds commented on GitHub (Jun 20, 2022): ![MINGW64__c_WINDOWS_System32 20-06-2022 03_07_31 PM](https://user-images.githubusercontent.com/32932853/174573248-c5411e19-6a50-4723-8334-6d4a88b1d566.png)
Author
Owner

@susanaSeres commented on GitHub (Feb 24, 2023):

In my case

"commandline": "C:/....... your directory installation /git/bin/bash.exe",

@susanaSeres commented on GitHub (Feb 24, 2023): In my case "commandline": "C:/....... your directory installation /git/bin/bash.exe",
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17734