Contents
Features
Git Graph
- Branch topology drawn as smooth, colored lanes. HEAD, merge commits and uncommitted changes each have their own node style.
- Three row densities. Comfortable (default), Compact and Spacious. See Row density.
- Filters and search. Show all, local or remote branches, or a single branch. Search by message, author, email, hash or ref, then jump between matches with Enter.
- Commit details. A resizable panel shows the message, parents and refs, and every changed file with its line counts. Click a file to open it in the VS Code diff editor.
- Context menus. Right-click a commit to check it out, create a branch or tag, cherry-pick, revert or reset (soft, mixed or hard). Right-click a branch badge to check it out, merge, rebase, push, rename or delete it.
- Large histories. The list is virtualized and loads more commits as you scroll.
Row density
Choose how tightly the commit list is packed. Change it from the View options button (☰) at the top right of the graph, the ⚙ settings modal, or the gitWorkspace.graph.density setting.
Comfortable (default): 36px rows. A balance between readability and the number of commits on screen.
| Compact: 28px rows, the most commits on screen |
Spacious: 54px rows, large nodes and a separate branch column |
 |
 |
- Switch and create branches. A sync strip shows how many commits are ahead (↑) and behind (↓).
- A working tree card summarizes your changes.
- Stage, unstage, discard and open files one at a time, by folder, or all at once.
- Show changes as a flat list or a folder tree.
- Commit with Ctrl/⌘+Enter, or use Commit & Push and Amend.
- During a merge, rebase or cherry-pick, a banner offers Abort and Continue.
- Fetch, pull, push, publish and stash.
The extension adds a Git Graph button (merge icon) to the title bar of VS Code's built-in Source Control view, next to the commit box. Click it to open the Git Graph without leaving the view you are working in.
Hover cards
| Author card |
Date card |
 |
 |
| Commit count, first and last activity, other names used with the same email, and a custom avatar. |
Relative and full date and time with time zone, in your calendar: Gregorian (default), Solar Hijri or Lunar Hijri. Also ISO 8601 and Unix values, one click to copy. Use ✏️ to change the calendar or date format. |
Inline blame
When you click a line in the editor, a faint note appears at its end with the author, the time and the summary of the last commit that changed that line.
Move the pointer over the note to see a short description of that change:
- author, relative time and exact date
- commit message
- short hash and an Open in Git Graph link, which selects that commit in the graph
You can change the note format and the delay, or turn it off, in Settings.
Themes and palettes
- Night, Day or Follow VS Code theme. The theme changes immediately, without reloading the view.
- Six lane color palettes: Vivid, Pastel, Neon, Ocean, Sunset and Graphite. On light themes they are darkened automatically so they stay readable.
Install
Download the latest git-workspace-graph-x.y.z.vsix from Releases.
Install it:
code --install-extension git-workspace-graph-x.y.z.vsix
Or, in VS Code, open Extensions → ··· → Install from VSIX…
Run Developer: Reload Window.
Requires VS Code 1.90 or newer and Git on your PATH (or set git.path).
Usage
| What |
How |
| Open the Git Graph |
Ctrl+Alt+G (⌘+Alt+G on macOS), the Git Graph button in the Source Control title bar, or the Git Workspace icon in the Activity Bar → arrow on the working tree card |
| Show or hide commit details |
Click a commit, or press Enter / Space |
| Move between commits |
↑ ↓ PgUp PgDn Home End |
| Search |
/ or Ctrl+F, then Enter / Shift+Enter for the next or previous match |
| Check out a branch |
Double-click its badge |
| Open settings |
⚙ button at the top right of the graph |
Reset hard, discard, delete, rebase and force operations always ask you to confirm first.
Settings
Everything below can be changed from the ⚙ settings modal or from VS Code settings.
| Setting |
Default |
Description |
gitWorkspace.theme |
brand |
brand (night), light (day) or auto (follow VS Code) |
gitWorkspace.graph.density |
comfortable |
compact, comfortable or spacious |
gitWorkspace.graph.palette |
vivid |
vivid, pastel, neon, ocean, sunset or graphite |
gitWorkspace.graph.pageSize |
500 |
Number of commits loaded per page |
gitWorkspace.calendar |
gregory |
gregory, persian or islamic-umalqura |
gitWorkspace.dateFormat |
relative |
Commit list dates: relative ("56m ago") or absolute (date and time) |
gitWorkspace.avatars.gravatar |
false |
Load avatars from Gravatar (see Privacy) |
gitWorkspace.inlineBlame.enabled |
true |
Show inline blame on the current line |
gitWorkspace.inlineBlame.format |
${author}, ${timeAgo} • ${summary} |
Also supports ${hash} and ${date} |
gitWorkspace.inlineBlame.delay |
150 |
Delay in milliseconds before the blame appears |
Commands and shortcuts
| Command |
Shortcut |
| Git Workspace: Open Git Graph |
Ctrl+Alt+G |
| Git Workspace: Refresh |
|
| Git Workspace: Fetch / Pull / Push |
|
| Git Workspace: Select Repository |
|
| Git Workspace: Toggle Inline Blame |
|
Privacy
- Avatars default to initials and use no network access. Custom avatars are images you pick, stored locally in VS Code's global state.
- Gravatar is off by default. When you turn it on, an MD5 hash of each author email is sent to
gravatar.com.
- Fetch, pull and push go through VS Code's built-in Git extension, so your existing credentials and authentication still work.
Development
pnpm install
pnpm watch # rebuild on change; press F5 in VS Code to launch the extension
pnpm test # unit tests (parsers, graph layout)
pnpm typecheck
pnpm package # production build + .vsix
Releasing
Releases are automated with GitHub Actions (release.yml):
Bump version in package.json and add a ## [x.y.z] section to CHANGELOG.md.
Commit, then tag and push:
git tag vX.Y.Z
git push origin main --tags
The workflow checks that the tag matches package.json, runs the type check and tests, builds the .vsix, and publishes a GitHub Release with the changelog section as release notes.
Architecture
Extension Host (Node) Webviews (React)
├─ git/ Git CLI client + parsers ◀─RPC─▶ graph/ Git Graph panel
├─ graph/ lane layout (pure, tested) sidebar/ Source Control view
├─ controller every operation, confirmations components/ cards, menus, settings
├─ blame inline blame decorations lib/ rpc, dates, palettes
└─ avatars custom / Gravatar avatars
- All reads and writes go through the Git CLI via
execFile. Commands are never passed through a shell.
- Webviews talk to the host through a typed RPC whose method list is an allowlist. Settings writes are validated per key.
- Diffs open in the built-in VS Code diff editor through a
gitws: content provider.
More detail: docs/PLAN.fa.md (project plan, in Persian) and docs/DESIGN.md (design system).
License
MIT © Hadi Esmaeili
| |