Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Context MenuNew to Visual Studio Code? Get it now.
Git Context Menu

Git Context Menu

Renan Biegelmeyer

|
218 installs
| (0) | Free
Adds a Git submenu to the VS Code Explorer context menu with common Git actions like Add, Commit, Push, Pull, Diff and Stash. Inspired by JetBrains IDE Git workflows.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Context Menu

A lightweight VS Code extension that adds a GoLand-like Git submenu to the File Explorer context menu.

Git context menu Add action demo

Features

Right-click any file in the Explorer to access a clean, JetBrains-style Git submenu. The commands are organized with separators into logical groups:

1. Staging & Commit

  • Git ▸ Commit…: Opens the VS Code Git commit input.
  • Git ▸ Add: Stages the selected file(s). Supports multi-select with Ctrl + Click.
  • Git ▸ Add All: Stages all changes in the repository.

2. Inspection

  • Git ▸ Show Diff: Opens the file diff view.

3. File Operations

  • Git ▸ Rollback…: Discards local modifications for the selected file(s). Supports multi-select.
  • Git ▸ Add to .gitignore: Appends the selected file(s) or directory(ies) to the .gitignore file at the repository root. Directories automatically get a trailing / and path separators are normalized to forward slashes.

4. Branching & Stashing

  • Git ▸ Switch Branch...: Opens the branch selection menu to checkout local or remote branches.
  • Git ▸ New Branch…: Opens the "Create Branch" dialog.
  • Git ▸ Stash Changes…: Prompts for an optional stash message and runs git stash push. Press Cancel (or Esc) to abort.

5. Remote Operations

  • Git ▸ Fetch: Updates local tracking branches from the remote.
  • Git ▸ Pull… / Push…: Runs standard Git push/pull operations.
  • Git ▸ Publish Branch...: Publishes the current local branch to the remote repository.

All entries use VS Code codicons for a clean, JetBrains-style look.

Source Control ▸ Stashes

In the Source Control panel, the Stashes view lists your stashes and lets you Apply, Pop, Drop, create a Branch, or Copy the message via inline actions/context menu (matching the behavior shown in the screenshot). Click a stash to expand its files, and click a file to open a diff between the stash and its base.

Requirements

  • VS Code 1.85.0+
  • Git installed and available in PATH
  • Built-in Git extension enabled
  • An open folder that is a valid Git repository

Changelog

See CHANGELOG.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft