Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Gerrit Push SENew to Visual Studio Code? Get it now.
Gerrit Push SE

Gerrit Push SE

flxy

| (0) | Free
Adds a Source Control button to push HEAD to Gerrit refs/for/<branch> for review.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Gerrit Push Button

Adds a button in VS Code Source Control to push HEAD to refs/for/<branch> on your Gerrit remote for review.

Features

  • Source Control title bar button and Command Palette command: Gerrit: Push HEAD to Gerrit
  • Runs git push <remote> HEAD:refs/for/<branch> with a branch picker
  • Optional reviewer prompt to push as refs/for/<branch>%r=<reviewer>
  • Defaults to the current branch; override with gerritPush.defaultBranch
  • Remote defaults to origin; override with gerritPush.remote

snipshot

Setup & Debug

  1. Install dependencies:
npm install
  1. Open the vscode-gerrit-push folder in VS Code.
  2. Open the “Run and Debug” panel, choose Run Extension, and hit “Run” (or press F5). This launches an Extension Development Host that builds and loads the extension.

Usage

  1. Open a Git workspace.
  2. In the Source Control view title bar, click the icon button Push HEAD to Gerrit, or run the command with the same name from the Command Palette.
  3. Pick the target branch (current branch, configured default branch, or a custom value).
  4. If enabled, select preset reviewers and/or enter reviewers (comma or space separated) for Gerrit.
  5. Confirm the prompt git push <remote> HEAD:refs/for/<branch>.
  6. The extension resolves the Git root via VS Code’s Git SCM (falls back to git rev-parse), so multi-repo workspaces push from the right repo.

Settings

  • gerritPush.defaultBranch: default branch for refs/for/<branch> (empty = current branch).
  • gerritPush.remote: Git remote name to push to (default origin).
  • gerritPush.enableReviewers: enable reviewer selection before pushing.(default false)
  • gerritPush.reviewerPresets: preset reviewer list shown in the reviewer picker.
  • gerritPush.confirmBeforePush: confirm before pushing.(default true)
  • gerritPush.skipAllPrompts: skip all prompts, pushing immediately. (default false)
  • gerritPush.quickPush: enable quick push: add all files, commit messages from input box. (default false)

Note: skipAllPrompts is not recommended for production use. When skipAllPrompts is true, all prompts are skipped and defaults are used: remote is origin, branch is the current branch. quickPush is not recommended for production use. When quickPush is true, all files are added to the commit and the commit message is used from the input box.

Package for distribution

  1. Install dependencies (first time or after updates):
npm install
  1. Build a VSIX:
npm run package

The generated .vsix can be shared and installed via VS Code’s Extensions panel “Install from VSIX...”.

Metadata

  • Icons: generated with Nano Banana Pro (images/icon.png, images/command-icon.png)
  • Repository: https://github.com/liaojianjin/vscode-gerrit-push
  • License: MIT (see LICENSE)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft