Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git ShellNew to Visual Studio Code? Get it now.
Git Shell

Git Shell

Salim Omar

|
1 install
| (0) | Free
Open a terminal that runs entered commands as Git subcommands.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Shell for VS Code

This extension opens a Git-only terminal with a git> prompt. Every entered command runs as a Git subcommand, so status runs git status and log --oneline runs git log --oneline. A command beginning with git is passed through unchanged.

Press Tab to complete Git commands, common command options, refs, and file paths; press Tab twice to list multiple matches. Prefix a line with ! to run it as a shell command, for example !ls or !git status. Unprefixed input remains Git-only. Git Shell supports quoted arguments and environment-variable expansion for Git commands. Git and Node.js must be available on PATH.

Choose Terminal: Create New Terminal (With Profile), then select Git Shell. The Git Shell: Open Terminal command is also available in the Command Palette. The terminal starts in the first open workspace folder, when one is available.

Running the extension locally

  1. Open this folder in VS Code.
  2. Press F5 to launch an Extension Development Host.
  3. Open the Command Palette and run Git Shell: Open Terminal or Terminal: Create New Terminal (With Profile) and choose Git Shell.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft