Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Git Graph SidebarNew to Visual Studio Code? Get it now.
Git Graph Sidebar

Git Graph Sidebar

mtunix

| (0) | Free
Read-only git commit graph in the sidebar, next to your changes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Graph Sidebar

Like VS Code's built-in commit graph, but keep reaching for a search box that isn't there? Here it is. Plus each commit's changed files right in the tree, and F7 that walks a whole commit instead of giving up at the end of a file.

Still read-only. It won't rebase anything behind your back.

Features

  • Commit graph with branch lanes, merges and ref badges, drawn like VS Code's own Source Control Graph. Loads more history as you scroll.
  • Incoming and outgoing changes against the current branch's upstream.
  • Commit details: hover a row (or Ctrl+K Ctrl+I) for author, committer, date and full message; expand it for the changed files, as a list or a tree.
  • Diffs: click a file to open it against its parent. F7 / Shift+F7 (or Alt+F5 / Shift+Alt+F5) step through every change in the commit, across files.
  • Ref filter: draw only the current branch, its upstream and base (Auto), every ref (All), or the branches and tags you pick.
  • Search commits by hash, message, author or committer, with match case and regular expressions.
    • Highlight marks matches in the graph; Enter / Shift+Enter jump between them.
    • Filter shows only the matches, as a graph of their own; Show in Graph jumps back to a commit.
    • Search all branches looks past the ref filter.
    • ↑ / ↓ recall earlier searches; Esc clears.
  • Row menus: copy hash or message, open the commit on GitHub, GitLab, Bitbucket or Azure DevOps; open a file at that revision or as it is now, reveal it, copy its path.
  • Fetch, Refresh and Repository switching from the view's title bar.

Search syntax

Words match anywhere in a commit: hash prefix, subject, body, author or committer. All terms must match. Double quotes group words.

Prefix Matches
hash: Commit hash prefix
author: Author name or email
committer: Committer name or email
msg: Subject or body
path: Commits touching a path
code: Commits that add or remove the text (git log -S)
after: Commits after a date, in any form git accepts (2026-01-31, 2.weeks.ago)
before: Commits before a date

path:, code:, after: and before: once per search each.

author:alice msg:"fix crash" after:2026-01-01

Settings

Setting Default Does
gitGraphSidebar.location scm scm: in the Source Control view. activityBar: its own container, full sidebar height.
gitGraphSidebar.pageSize 200 Commits loaded per page as you scroll.
gitGraphSidebar.showAuthorAndDate false Author and relative date at the end of each row.

You can drag the view anywhere either way.

F7 clashes with keymap extensions

F7 / Shift+F7 work only in this extension's diffs. A keymap extension that binds F7 in every diff (the IntelliJ IDEA Keybindings keymap does) can win, since VS Code orders extension keybindings by load. Use Alt+F5, or claim F7 in your keybindings.json, which always wins:

{ "key": "f7", "command": "gitGraphSidebar.nextChange", "when": "isInDiffEditor && resourceScheme == git-graph-sidebar" },
{ "key": "shift+f7", "command": "gitGraphSidebar.previousChange", "when": "isInDiffEditor && resourceScheme == git-graph-sidebar" }

Requirements

Git, and VS Code 1.95 or later with the built-in Git extension enabled.

Contributing

Issues and pull requests: github.com/mtunix/git-graph-sidebar. Building, testing and releasing: CONTRIBUTING.md.

License

GPL-3.0-or-later. The lane graph and ref badges are ported from VS Code's Source Control Graph (MIT); icons from @vscode/codicons (CC BY 4.0). Details in ThirdPartyNotices.txt.

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