SG Security Journal

Adding a Git Bash profile to Windows Terminal

05 Jun 2024


A quick guide on how to configure a Git Bash profile in Windows Terminal

i This guide presumes that Git is installed under the users profile location and that your working Git folder is c:\git. You might need to adjust the guide accordingly.

Configuration

  1. Open the Windows Terminal

  2. Open the Settings page. Pressing “ctrl” + “,” will do this for you.

  3. Select the Add New Profile button.

  4. Click on the New Empty Profile button.

  5. Set the Name field to Git Bash

  6. Set the Command Line field to be:

    C:\Users\<username>\AppData\Local\Programs\Git\bin\bash.exe

  7. Set the Starting Directory to be:

    C:\git

  8. Click on Save.