Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Pinned DiffNew to Visual Studio Code? Get it now.
Git Pinned Diff

Git Pinned Diff

mashurr

|
118 installs
| (0) | Free
Pin a branch, tag or commit and see every change since it in the gutter and the Source Control view.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Pinned Diff

Pin a branch, tag or commit and see everything that changed since then, right in your editor.

Git Pinned Diff in action: pinning a tag, change bars, a breakpoint, the changed files list, a diff and pinning a commit

Features

  • Pin from the status bar: search branches, tags and recent commits, or type any ref such as HEAD~2.
  • Native change bars in the gutter, so breakpoints still work on every line.
  • Click a change bar to see its diff against the pinned ref.
  • Changed files list in the Source Control view; click a file to open its diff.
  • Follows along as you type, commit or fetch.
  • Every repository: multi-root workspaces, nested repositories, worktrees and submodules.
  • Quiet: nothing is highlighted until you pin a ref.

Requirements

  • VS Code 1.90 or later, with the built-in Git extension enabled.

Known Issues

  • Git's own change bars share the gutter and look the same. To see only pinned changes, right-click a line number, open Diff Decorations and turn off Git Local Changes (Working Tree). Turn it back on after unpinning.

    Turning off Git's change bars from the line number menu

  • The pinned ref resets when the window reloads.

  • One pinned ref applies to the whole workspace.

  • Files renamed since the ref show as entirely new in the gutter.

Report issues on GitHub.

Release Notes

See CHANGELOG.md.

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