How to add Git Bash to Windows Terminal

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.

How to add Git Bash to Windows Terminal
Select Add new under Profiles, then fill in Name and Command line on the General tab and select Save. (Image: Microsoft)

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.

  1. Open Windows Terminal and press Ctrl + , to open Settings.
  2. Select + Add new at the bottom of the profile list in the left sidebar and create a new empty profile.
  3. In Name, type Git Bash.
  4. In Command line, type C:\Program Files\Git\bin\bash.exe -li.
  5. In Icon, type C:\Program Files\Git\mingw64\share\git\git-for-windows.ico.
  6. In Starting directory, keep %USERPROFILE% or browse to your projects folder.
  7. 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.

  1. 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.
  2. Locate the Git Bash executable. Open File Explorer at C:\Program Files\Git\bin and confirm bash.exe is there. A 32-bit install uses C:\Program Files (x86)\Git\bin instead.
  3. Open Windows Terminal settings. Start Windows Terminal and press Ctrl + ,, or open the dropdown next to + and select Settings.
  4. 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).
  5. 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.

  1. Press Ctrl + , in Windows Terminal and select Git Bash in the profile list.
  2. Change Starting directory to the folder that holds your repositories, for example %USERPROFILE%\source\repos.
  3. Set Tab title if you want a fixed label instead of the profile name.
  4. Turn on Automatically run as Administrator only if every Git Bash session needs elevation.
  5. Open the profile's Appearance page to choose a color scheme, font face and font size.
  6. 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.

  1. Select Save in Settings, or save settings.json in your editor.
  2. Open the dropdown next to + and choose Git Bash.
  3. Check that the tab shows the Git for Windows icon and a Bash prompt ending in $.
  4. Type git --version and press Enter; it should print the installed Git version.
  5. Type pwd and 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 +.

  1. Press Ctrl + , to open Settings.
  2. Select Startup in the sidebar.
  3. Choose Git Bash in the Default profile list.
  4. Select Save.
  5. 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.

Set Git Bash as default profile in Windows Terminal Startup settings
Choose Git Bash in the Default profile list so it opens at launch, with Ctrl + Shift + T and with the + button. (Image: Microsoft)

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.

  1. Open Settings, select Git Bash and then Appearance.
  2. 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.
  3. Set Font face and Font size; the default is Cascadia Mono at 12 points.
  4. Choose a Cursor shape, such as bar, underscore or filled box.
  5. Lower Background opacity or turn on acrylic for a see-through window; unblurred opacity works only on Windows 11.
  6. 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.

Customize Git Bash appearance in Windows Terminal with the Campbell color scheme
Campbell is the default scheme; One Half Dark, Tango Dark and Vintage are other built-in choices on the Appearance page. (Image: Microsoft)

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.

  1. Open Settings, select Git Bash, then Appearance.
  2. 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.
  3. Select Save and open a new Git Bash tab.
  4. If git status shows file names as octal codes such as \302\265, run git config --global core.quotePath false.
  5. Run git status again; 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.

Windows Terminal shortcut keys Ctrl+Shift+1 to 9 beside each profile
The first nine profiles get Ctrl + Shift + number keys in list order, so moving Git Bash up changes its key. (Image: Microsoft)

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.

Open the Windows Terminal settings.json file from the Settings entry
Hold Shift while selecting Settings to open settings.json directly; holding Alt opens defaults.json instead. (Image: Microsoft)

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.

  1. Open Settings and look for Git Bash in the profile list.
  2. If it is listed, open it and turn off Hide profile from dropdown, or remove "hidden": true in settings.json.
  3. 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.

  1. Check the startingDirectory value for doubled backslashes and a folder that exists.
  2. Open ~/.bashrc and ~/.bash_profile and remove any cd line that runs at startup.
  3. 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.

  1. Close every Windows Terminal window.
  2. Rename settings.json, and also state.json in the same folder on Terminal 1.10 or later.
  3. Start Windows Terminal; it creates fresh default files.
  4. 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.

  1. In Git Bash, run nano ~/.inputrc.
  2. Add or change the line to set bell-style none (or audible to keep a sound).
  3. 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.

  1. Open Settings > Git Bash > Appearance.
  2. Set Font face to Cascadia Code PL or Cascadia Mono PL.
  3. 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.

  1. Set the Git Bash Color scheme back to Campbell to rule out the scheme.
  2. Open Settings > Rendering and try the software rendering option.
  3. 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.

  1. Open settings.json in Visual Studio Code, which marks syntax errors.
  2. Make sure every path uses double backslashes, such as C:\\Program Files\\Git.
  3. Check that profile objects in list are separated by commas, with none after the last one.
  4. 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.

  1. Open File Explorer and confirm C:\Program Files\Git\bin\bash.exe exists.
  2. If Git lives elsewhere, run where git in Command Prompt and use the matching bin\bash.exe path.
  3. 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.

  1. Use mingw64\share\git\git-for-windows.ico for 64-bit Git or mingw32\share\git\git-for-windows.ico for 32-bit Git.
  2. 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.

  1. Open settings.json and cut the Git Bash object.
  2. Paste it at the position that matches the key you want; first is Ctrl + Shift + 1.
  3. 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.

  1. Compare the id in keybindings with the one in actions character by character.
  2. Choose a key combination no other action uses.
  3. 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.

  1. Press Ctrl + , to open the Settings UI instead.
  2. 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

  1. Press Ctrl + , and select Git Bash in the profile list.
  2. To keep the profile but hide it, turn on Hide profile from dropdown and select Save.
  3. To delete a profile you added, scroll to the bottom of its page, choose the delete option and select Save.
  4. 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.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *