How to integrate Git Bash with Visual Studio Code?

Prerequisites: VS Code and Git Bash

Git Bash is an application that provides Git command line experience on the Operating System. It is a command-line shell for enabling git with the command line in the system.

VSCode is a Text editor that provides support for development operations and version control systems. It provides tools for a user to build hassle-free codes.

Downloading and Installation

Git Bash can be downloaded and installed from its official site while VSCode can be installed from

Integration of GitBash with VSCode

The below steps have to be followed to integrate Git Bash with Visual Studio Code:

Step 1: Open Terminal in VScode by using the shortcut key Ctrl+~. Here you will see that currently, it has PowerShell and we have to add bash to it.

Step 2: Then, you have to open settings by File->Preferences->Settings or by pressing Ctrl+, . You have to click on the Open Settings(JSON) icon as shown in the image below:

Step 3: On clicking, you will see the settings page. You have to copy “”: “C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe” at the last of all settings as shown in the image  below:

Step 4: And that’s all when you will reopen VS Code then you will see that Git Bash has been integrated. Now you can run Git Bash commands directly in VS Code.

My Personal Notes arrow_drop_up

I am a passionate learner with an innovative mind I am curious about new technologies and always try to learn them and make something productive

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.