HomeAbout MeContact

Git-bash with vscode

By Daniel Padua
Published in Tips
March 27, 2019
1 min read
Git-bash with vscode

Learn to change the default integrated terminal of vscode to git-bash

Intro

Git-bash is a Windows application that emulates a Linux shell experience, and comes obviously with git program. In this guide I’ll demonstrate how to modify vscode’s integrated terminal to set git-bash. However, this guide can also be used to set powershell as vscode’s integrated terminal, once vscode comes with cmd.exe by default on Windows.

Guide

  1. Install Git/Git Bash in your Windows;

  2. Open vscode and click: File > Preferences > Settings;

  3. In User Settings tab, select: Features and then Terminal;

  4. Search for the section named: Integrated > Shell: Windows and put the full path to git-bash executable, as it follows:

Setting git-bash executable path in vscode integrated terminal
Setting git-bash executable path in vscode integrated terminal

Explaining what vscode does under the hood, if you open settings.json and manually edit it, you’ll see something like the following:

Integrated terminal configuration
Integrated terminal configuration

By setting this property, next time you open vscode’s integrated terminal, it will run git-bash instead of Windows’s cmd.

To set Powershell as integrated terminal, you just have to set Powershell full path in the same variable.

Hope it helps, see you soon!


Tags

#visual-studio-code#git#git-bash#windows#microsoft

Share


Previous Article
Vscode + ASP.NET Core: Setup development environment
Daniel Padua

Daniel Padua

Software Developer

Topics

Cloud
Concepts
Programming
Tips

Related Posts

Using Chocolatey for Windows
May 05, 2019
1 min
© 2025, All Rights Reserved.
Powered By

Quick Links

About MeContact

Social Media