To add Git Bash to Windows Terminal, create a new profile whose command line is C:\Program Files\Git\bin\bash.exe -li, then pick Git Bash from the dropdown next to the + tab button.
This guide covers the Settings UI route, the settings.json profile Microsoft publishes, GUIDs, the default profile, shortcut keys, appearance, UTF-8 output and fixes for profiles that will not load.

Add Git Bash profile to Windows Terminal in Settings
This route needs no JSON editing and works in Windows Terminal on Windows 11 and Windows 10. It assumes Git for Windows sits in its default folder, C:\Program Files\Git.
- Open Windows Terminal and press Ctrl + , to open Settings.
- Select + Add new at the bottom of the profile list in the left sidebar and create a new empty profile.
- In Name, type
Git Bash. - In Command line, type
C:\Program Files\Git\bin\bash.exe -li. - In Icon, type
C:\Program Files\Git\mingw64\share\git\git-for-windows.ico. - In Starting directory, keep
%USERPROFILE%or browse to your projects folder. - Select Save, then open the dropdown arrow next to + and choose Git Bash.
If Git Bash already shows in that dropdown, Git for Windows registered the profile for you and no manual step is needed.
Understanding Windows Terminal and Git Bash
Windows Terminal is the host window with tabs and panes; Git Bash is one shell it can host. A profile is the link between them: it tells Terminal which program to start and how to style the tab.
| Piece | What it is | Where it comes from |
|---|---|---|
| Windows Terminal | Tabbed host for PowerShell, Command Prompt, WSL, SSH and any other shell | Microsoft Store, or the GitHub releases page when the Store is unavailable |
| Git Bash | The Bash shell bundled with Git for Windows, started from bin\bash.exe |
Git for Windows from git-scm.com |
| Profile | A settings object with name, commandline, icon and startingDirectory |
Created by you, by Terminal itself, or by an installer fragment |
| Dynamic profile | A profile Terminal generates on its own | Only for WSL distributions, PowerShell, Azure Cloud Shell and SSH hosts, not Git Bash |
| JSON fragment | A separate .json file an app installs to add its own profile | Stored under Windows Terminal\Fragments\{app-name} in ProgramData or LocalAppData |
Because Git Bash is not one of the shells Terminal detects, it appears only when Git's setup adds a fragment or when you create the profile yourself. The same profile system powers tabs, panes and the command palette in Windows Terminal, so a Git Bash profile works with all of them.
Prerequisites for adding Git Bash to Windows Terminal
| Requirement | Detail | How to check |
|---|---|---|
| Windows Terminal | Free Microsoft Store app; GitHub release builds exist for PCs without the Store | Search for Terminal in Start |
| Git for Windows | Latest release is 2.56.1 (10 November 2026), x64 and ARM64 installers | Run git --version in PowerShell |
| The bash.exe path | Default 64-bit path is C:\Program Files\Git\bin\bash.exe |
Run where git in Command Prompt and look at the Git folder it names |
| A text editor for settings.json | Only for the JSON route; Visual Studio Code validates the file as you type | Hold Shift and select Settings in the Terminal dropdown |
You can download Git for Windows from the official installer page or install it with winget install --id Git.Git -e --source winget. The winget and Chocolatey packages are not maintained by the Git for Windows project and can lag behind the latest version.
Step-by-step guide to adding Git Bash to Windows Terminal
These five steps take a PC without Git to a working Git Bash tab. Skip the first step if git --version already returns a version number.
- Install Git Bash. Run the Git for Windows installer from git-scm.com and keep the default install folder unless you have a reason to change it.
- Locate the Git Bash executable. Open File Explorer at
C:\Program Files\Git\binand confirmbash.exeis there. A 32-bit install usesC:\Program Files (x86)\Git\bininstead. - Open Windows Terminal settings. Start Windows Terminal and press Ctrl + ,, or open the dropdown next to + and select Settings.
- Add a new profile for Git Bash. Select + Add new, then fill in Name (
Git Bash), Command line (C:\Program Files\Git\bin\bash.exe -li) and Icon (C:\Program Files\Git\mingw64\share\git\git-for-windows.ico). - Save and launch. Select Save, open the dropdown next to + and choose Git Bash to open it in a new tab.
Point Command line at bin\bash.exe, as Microsoft's sample profile does. The -li flags start Bash as an interactive login shell, so your ~/.bash_profile and ~/.bashrc load as they do in a normal Git Bash window.
Create a new profile for Git Bash
The settings.json route is faster if you set up several PCs or keep your Terminal settings in a dotfiles repo. Hold Shift and select Settings in the Terminal dropdown to open the file, or press Ctrl + Shift + ,.
{
"name": "Git Bash",
"commandline": "C:\\Program Files\\Git\\bin\\bash.exe -li",
"icon": "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"startingDirectory": "%USERPROFILE%"
},
Paste this object inside the "list": [ ... ] array under "profiles". Backslashes must be doubled inside JSON strings. For a 32-bit install, use %ProgramFiles(x86)%\\Git\\bin\\bash.exe -li and the icon under mingw32 instead of mingw64.
You should see: After you save the file, Terminal reloads it and Git Bash appears in the dropdown next to +.
Watch the commas: the object needs a comma after it if another profile follows, and none if it is the last entry in the list.
Assign a unique GUID
A GUID lets other settings, such as defaultProfile or a key binding, point at the profile even after you rename it. It is optional for a profile you add by hand, but every GUID in the list must be different.
New-Guid
Run this in a PowerShell tab. It prints a random Version 4 GUID. Copy it into the profile as "guid": "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}", keeping the curly brackets Terminal expects.
You should see: A table headed Guid with one value such as d61bbeca-0186-48fa-90e1-ff7aa5d33e2d.
The Git Bash profile that Git for Windows registers through a fragment uses the fixed GUID {2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}. Do not reuse it for a hand-made profile, or the two will collide.
Customizing Git Bash profile in Windows Terminal
Every Git Bash setting can be changed from the Settings UI without opening settings.json.
- Press Ctrl + , in Windows Terminal and select Git Bash in the profile list.
- Change Starting directory to the folder that holds your repositories, for example
%USERPROFILE%\source\repos. - Set Tab title if you want a fixed label instead of the profile name.
- Turn on Automatically run as Administrator only if every Git Bash session needs elevation.
- Open the profile's Appearance page to choose a color scheme, font face and font size.
- Select Save to apply the changes to new Git Bash tabs.
Customize profile settings
These are the profile properties that matter most for Git Bash, with the value to use in settings.json.
| Property | What it does | Git Bash example |
|---|---|---|
name |
Label in the dropdown; the only required property | "Git Bash" |
commandline |
Program the tab starts; defaults to cmd.exe if left out |
"C:\\Program Files\\Git\\bin\\bash.exe -li" |
startingDirectory |
Folder the shell opens in; defaults to %USERPROFILE% |
"%USERPROFILE%\\source\\repos" |
icon |
Icon in the tab, dropdown, jump list and tab switcher; accepts a file path or an emoji | "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico" |
tabTitle |
Replaces the name passed to the shell at startup | "Git" |
suppressApplicationTitle |
Ignores title changes the shell sends, so the tab keeps your title | true |
elevate |
Opens the profile as Administrator; default false |
true |
hidden |
Removes the profile from the dropdown but keeps it in the file | true |
Bash may ignore the initial title, so set suppressApplicationTitle alongside tabTitle when you want a fixed tab label.
Save and launch
A working profile opens a Bash prompt in the starting directory and runs Git commands straight away.
- Select Save in Settings, or save settings.json in your editor.
- Open the dropdown next to + and choose Git Bash.
- Check that the tab shows the Git for Windows icon and a Bash prompt ending in
$. - Type
git --versionand press Enter; it should print the installed Git version. - Type
pwdand press Enter; it should print your starting directory in Unix form, such as/c/Users/<name>.
Open Git Bash in Windows Terminal from the command line
The wt command opens any profile by name, which is handy from the Run box or a script.
wt -p "Git Bash" -d .
-p (--profile) picks the profile by name and -d (--startingDirectory) sets the folder; . means the current folder. Type it in the File Explorer address bar to open Git Bash in the folder you are looking at.
You should see: A Windows Terminal window with a Git Bash tab whose prompt shows that folder.
Configure default profile
The default profile opens when Terminal starts, when you press Ctrl + Shift + T and when you select +.
- Press Ctrl + , to open Settings.
- Select Startup in the sidebar.
- Choose Git Bash in the Default profile list.
- Select Save.
- To do the same in settings.json, set
"defaultProfile"at the root of the file to the Git Bash GUID or to"Git Bash".
On the same Startup page, set Default terminal application to Windows Terminal so other console programs also open in Terminal. You can open Windows Terminal from the taskbar, Start or the Win + X menu, and each route then starts in Git Bash.

Customize appearance
Appearance settings live on each profile, so Git Bash can look different from PowerShell and make it obvious which shell you are in.
- Open Settings, select Git Bash and then Appearance.
- Pick a Color scheme; built-in choices are Campbell (the default), Campbell Powershell, Vintage, One Half Dark, One Half Light, Tango Dark and Tango Light.
- Set Font face and Font size; the default is Cascadia Mono at 12 points.
- Choose a Cursor shape, such as bar, underscore or filled box.
- Lower Background opacity or turn on acrylic for a see-through window; unblurred opacity works only on Windows 11.
- Select Save and open a new Git Bash tab to see the result.
In settings.json the same choices are colorScheme, font.face, font.size, cursorShape, opacity and useAcrylic. A tabColor value such as "#F05032" also tints the Git Bash tab itself.

Enable Unicode and UTF-8 support
Windows Terminal renders Unicode text, so garbled output in Git Bash usually comes from the font or from Git escaping non-ASCII file names.
- Open Settings, select Git Bash, then Appearance.
- Set Font face to Cascadia Code PL or Cascadia Mono PL if your prompt uses Powerline symbols; plain Cascadia Code and Cascadia Mono lack those glyphs.
- Select Save and open a new Git Bash tab.
- If
git statusshows file names as octal codes such as\302\265, rungit config --global core.quotePath false. - Run
git statusagain; names with accented or non-Latin characters now print as written.
Windows Terminal ships with Cascadia Code and Cascadia Mono. The PL variants come from the Cascadia Code releases page on GitHub.
Set up shortcut keys
Windows Terminal already maps Ctrl + Shift + 1 to Ctrl + Shift + 9 to the first nine profiles in your list. To give Git Bash its own key instead, add an action and a key binding to settings.json.
"actions": [
{ "command": { "action": "newTab", "profile": "Git Bash" }, "id": "User.OpenGitBash" }
],
"keybindings": [
{ "keys": "ctrl+alt+g", "id": "User.OpenGitBash" }
]
The newTab action accepts a profile name or GUID in profile. The key binding refers to the action by its id. Merge these entries into the existing actions and keybindings arrays rather than adding second copies.
You should see: Pressing Ctrl + Alt + G opens a new Git Bash tab, and the action also appears in the command palette (Ctrl + Shift + P).
To use the built-in index keys instead, move the Git Bash object to the top of the list array; the first profile maps to Ctrl + Shift + 1.

Use profiles for multiple environments
One Git install can back several profiles, each with its own folder, title or elevation. Give each one a distinct name and, if you set one, a distinct guid.
| Environment | Profile change | Why |
|---|---|---|
| Work repositories | "name": "Git Bash (work)" with startingDirectory set to the work repos folder |
Each tab opens where those projects live |
| Personal projects | A second profile with a different startingDirectory and tabColor |
Color tells you which account the tab belongs to |
| Admin tasks | A copy with "elevate": true |
Opens in a separate elevated window, since elevated and normal tabs cannot share one |
| Side-by-side work | Press Alt + Shift + D in a Git Bash tab | Duplicates the focused profile into a new pane |
| Mixed shells | Run wt -p "Git Bash" ; split-pane -p "Windows PowerShell" |
Opens Git Bash and PowerShell in one window |
Additional tips for better integration
| Tip | How | Result |
|---|---|---|
| Hide a duplicate Git Bash entry | Set "hidden": true on the profile you do not use |
One Git Bash entry in the dropdown, nothing deleted |
| Start Terminal at sign-in | Set "startOnUserLogin": true or use the Launch on machine startup toggle on Startup |
Git Bash is open when you need it |
| Restore last session | Set "firstWindowPreference": "persistedWindowLayout" |
Windows, tabs and panes come back after a restart |
| Tweak the fragment profile | Add an object with "updates": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}" in your own fragment |
Change the installer's profile without editing Git's file |
| Validate your JSON | Edit settings.json in Visual Studio Code, which reads the injected $schema |
Typos are flagged before Terminal refuses the file |
Where is the Windows Terminal settings.json file
Hold Shift and select Settings in the Terminal dropdown to open the file directly, or browse to the path for your install type.
| Windows Terminal build | settings.json path |
|---|---|
| Stable release | %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json |
| Preview | %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json |
| Unpackaged (Scoop, Chocolatey) | %LOCALAPPDATA%\Microsoft\Windows Terminal\settings.json |
| Fragments for all users | C:\ProgramData\Microsoft\Windows Terminal\Fragments\{app-name}\ |
| Fragments for the current user | %LOCALAPPDATA%\Microsoft\Windows Terminal\Fragments\{app-name}\ |
Holding Alt while selecting Settings opens defaults.json instead. That file is regenerated by Terminal, so changes made there are ignored.

Troubleshooting common issues when adding Git Bash to Windows Terminal
Git Bash does not appear in the dropdown
Terminal does not detect Git Bash on its own, or the profile is hidden.
- Open Settings and look for Git Bash in the profile list.
- If it is listed, open it and turn off Hide profile from dropdown, or remove
"hidden": truein settings.json. - If it is not listed, add it with + Add new as shown at the top of this guide.
Git Bash opens in the wrong folder
A startup file or the command line changes directory after Terminal applies startingDirectory.
- Check the
startingDirectoryvalue for doubled backslashes and a folder that exists. - Open
~/.bashrcand~/.bash_profileand remove anycdline that runs at startup. - Open a new Git Bash tab and run
pwd.
Settings are broken beyond repair
Repeated edits left settings.json in a state Terminal cannot read.
- Close every Windows Terminal window.
- Rename settings.json, and also state.json in the same folder on Terminal 1.10 or later.
- Start Windows Terminal; it creates fresh default files.
- Add the Git Bash profile again.
Git Bash not displaying correctly
The Git Bash tab blinks or flashes
Git Bash sets bell-style visible, and Terminal shows the bell as a flash by design.
- In Git Bash, run
nano ~/.inputrc. - Add or change the line to
set bell-style none(oraudibleto keep a sound). - Press Ctrl + O, Enter and Ctrl + X to save and exit, then open a new tab.
Boxes or question marks appear in the prompt
The font lacks the Powerline or other symbols your prompt draws.
- Open Settings > Git Bash > Appearance.
- Set Font face to Cascadia Code PL or Cascadia Mono PL.
- Select Save and open a new tab.
Text looks blurry or colors look wrong
Some display drivers smear redrawn regions, or a color scheme overrides Git's colors.
- Set the Git Bash Color scheme back to Campbell to rule out the scheme.
- Open Settings > Rendering and try the software rendering option.
- Restart Windows Terminal.
Profile not loading or showing errors
Terminal reports an error loading settings.json
A missing comma, an extra comma or a single backslash breaks the JSON.
- Open settings.json in Visual Studio Code, which marks syntax errors.
- Make sure every path uses double backslashes, such as
C:\\Program Files\\Git. - Check that profile objects in
listare separated by commas, with none after the last one. - Save the file; Terminal reloads it without a restart.
The Git Bash tab closes or shows a launch error
The command line points at a path where bash.exe does not exist.
- Open File Explorer and confirm
C:\Program Files\Git\bin\bash.exeexists. - If Git lives elsewhere, run
where gitin Command Prompt and use the matchingbin\bash.exepath. - Update Command line in the profile and select Save.
The profile icon is blank
The icon path is wrong or points at a 64-bit folder on a 32-bit install.
- Use
mingw64\share\git\git-for-windows.icofor 64-bit Git ormingw32\share\git\git-for-windows.icofor 32-bit Git. - Select Save and reopen the dropdown.
Shortcut or launch issues
Ctrl + Shift + number opens the wrong shell
Index shortcuts follow the order of profiles in the list array.
- Open settings.json and cut the Git Bash object.
- Paste it at the position that matches the key you want; first is Ctrl + Shift + 1.
- Save the file and press the shortcut again.
A custom key binding does nothing
The key binding's id does not match the action's id, or another binding uses the same keys.
- Compare the
idinkeybindingswith the one inactionscharacter by character. - Choose a key combination no other action uses.
- Save the file and test the shortcut in a fresh window.
Opening Settings launches an unexpected app
Selecting Settings with Shift opens settings.json in the default .json editor.
- Press Ctrl + , to open the Settings UI instead.
- Change the default app for .json files in Windows Settings > Apps > Default apps if you prefer a different editor.
How to remove Git Bash from Windows Terminal
- Press Ctrl + , and select Git Bash in the profile list.
- To keep the profile but hide it, turn on Hide profile from dropdown and select Save.
- To delete a profile you added, scroll to the bottom of its page, choose the delete option and select Save.
- If Git Bash was your default, pick another profile under Startup > Default profile.
For a profile that Git's installer added through a fragment, hiding it is the cleaner option, because the fragment file stays in place while Git is installed.
Git Bash in Windows Terminal FAQ
Why does Git Bash not show up in Windows Terminal automatically?
Windows Terminal only generates profiles for WSL distributions, PowerShell, Azure Cloud Shell and SSH hosts. Git Bash appears only if Git for Windows installs a profile fragment or you add the profile yourself in Settings or settings.json.
Where is Git Bash installed on Windows?
A 64-bit Git for Windows install puts Bash at C:\Program Files\Git\bin\bash.exe, and a 32-bit install uses C:\Program Files (x86)\Git\bin\bash.exe. Running where git in Command Prompt shows which Git folder your PC uses.
How do I make Git Bash the default profile in Windows Terminal?
Open Settings with Ctrl + comma, select Startup, choose Git Bash under Default profile and select Save. In settings.json, set the root defaultProfile value to the Git Bash GUID or to the name "Git Bash".
Can I run Git Bash as administrator in Windows Terminal?
Yes. Turn on Automatically run as Administrator in the Git Bash profile, or add "elevate": true in settings.json. The profile then opens in a separate elevated window, because elevated and normal tabs cannot share one Terminal window.
What command line should the Git Bash profile use?
Use C:\Program Files\Git\bin\bash.exe -li, the value in Microsoft's sample profile. The -li flags start an interactive login shell, so your Bash startup files load just as they do in a normal Git Bash window.
Why does Git Bash flash in Windows Terminal?
Git Bash sets the bell style to visible, and Windows Terminal shows that bell as a flash by design. Add set bell-style none or set bell-style audible to ~/.inputrc and open a new tab to stop it.
How do I change the Git Bash icon in Windows Terminal?
Open the Git Bash profile in Settings and set Icon to an image path or an emoji. The Git for Windows icon is at C:\Program Files\Git\mingw64\share\git\git-for-windows.ico; Microsoft recommends 32×32 PNG, GIF or ICO files.
What GUID does the Git for Windows Git Bash profile use?
The fragment profile named Git Bash from the application Git has the GUID {2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}. Use it with updates in your own fragment, or in defaultProfile, and generate a new GUID for any profile you create by hand.
How do I reset Windows Terminal if settings.json breaks?
Close Terminal and delete or rename settings.json, plus state.json on version 1.10 or later. Windows Terminal recreates both files with default settings the next time it starts, and you can then add Git Bash again.
![How to set up and use HP pen on Windows 11/10 laptop [guide, tips & fixes]](https://techdows.com/wp-content/uploads/2026/12/How-to-set-up-and-use-HP-pen-on-Windows-1110-laptop-guide-tips-fixes-1-600x338.jpg)




