Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Git Partial Push
Git Partial Push

Git Partial Push

Giorgio Rosolia

|
3 installs
| (0) | Free
Right-click a commit in Git History to push the branch only up to that commit: git push <remote> <SHA>:<branch>.
Download

Git Partial Push

Push your branch only up to the commit you choose, straight from the Visual Studio Git History window.

Visual Studio can only push all your local commits at once. Git Partial Push adds a command to the Git History context menu that publishes the branch up to the selected commit, leaving the newer commits local:

git push <remote> <SHA>:<branch>

How to use it

  1. Open Git Repository (View → Git Repository) and go to the history of your branch.
  2. Right-click the commit you want to push up to.
  3. Choose the Git Partial Push command. Its text tells you exactly what will happen:
Commit state Menu text
only commit not yet pushed Push this commit to origin/master
preceded by other local commits Push this commit + 2 previous to origin/master
already on the remote Commit already on origin/master (disabled)
  1. Confirm the dialog, which shows the exact command and how many commits will be sent.
  2. The result appears in Output → Git Partial Push.

Good to know

  • Git cannot publish a commit without its parents: pushing a commit also sends all its ancestors that are not on the remote yet. To push commits one at a time, start from the oldest unpushed one.
  • Remote and target branch come from the upstream of the current branch (for example origin/master). Without an upstream the extension uses origin and the current branch name, and the branch is created on the remote.
  • The extension uses Git installed on your machine (git must be on the PATH).
  • English and Italian are supported, following the Visual Studio UI language.

Requirements

  • Visual Studio 2022 (17.x) or Visual Studio 2026 (18.x), x64 or Arm64.
  • Git for Windows.

The command is attached to the internal Git History context menu of Visual Studio. If a future Visual Studio update changes it, the command may disappear from the menu until the extension is updated.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft