Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vscode-gitlens

> 开发工具
Open source

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLe

9.9K stars0 likes4 views
WebsiteGitHub

About

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLe

GitLens — Supercharge Git in VS Code

Understand any line of code, keep every branch, worktree, and coding agent in view, and ship cleaner history — without leaving VS Code.

GitLens is an open-source extension built and maintained by GitKraken, and installed more than 51 million times.

Your repository moves faster than it used to. Coding agents open branches, worktrees pile up, and pull requests stack while you're still reading a diff. GitLens pulls all of it into one interactive view — history, working changes, branches, worktrees, and live agent activity together — then helps you review it, rebase it, and shape it into commits someone can actually read.

Start your free 14-day Pro trial — no credit card required.

GitLens Community is free and open-source, forever — and several Pro features, the Commit Graph among them, are free on public repos.

Getting Started

  1. Install it — search for GitLens in the Extensions side bar in VS Code.
  2. Sign in — a free GitKraken account opens the Commit Graph on your public repos, and starts your trial if you want it everywhere.
  3. Open the Commit Graph — click the GitLens icon in the activity bar, and there it is: your history, your working changes, and everything in flight. (GitLens: Show Commit Graph works too.)
  4. Connect what you use — your Git host and issue tracker for pull requests, issues, and autolinks, then your coding agents for session tracking and the GitKraken MCP.

Want new features first? Hit Switch to Pre-Release Version on the GitLens extension page in VS Code.

Preview features require a free GitKraken account and may become Pro features in the future. Experimental features are on by default but still changing.

See Everything in One Place — Commit Graph

Answering "what is actually going on in this repo right now" usually takes a view for branches, another for stashes, a terminal for status, and a browser tab for pull requests. The Commit Graph answers it in one place, and lets you act on the answer. Learn more

  • Live state on every row — ahead/behind, unpushed, unpulled, change size, and lanes you can fold away.
  • Your uncommitted work, in the history — a row per worktree. Stage, commit, stash, or send it to Compose Commits.
  • Act from the row — branch, merge, rebase, cherry-pick, revert, stash, push, pull, open a pull request.
  • Details in place — commits, branches, stashes, pull requests, comparisons. They stack as sheets; Esc backs out.
  • The whole repo in the side bar — Overview, Agents, Pull Requests, Worktrees, Branches, Remotes, Stashes, Tags. Click one to scope the graph.
  • Search that speaks Git — message:, author:, file:, change:, or just describe what you're after.
  • Always know where you are — jump to HEAD, upstream, or merge target. / finds any branch; the keyboard drives all of it.

Zoom Out and Spot the Patterns — Visualizations

Who should I ask about this file? Where is all the churn? What has that agent actually been touching? A list of commits can't tell you.

  • Visual History — a timeline of how a file or a repository evolved: when changes landed, how big they were, who made them. Good for finding the moment something turned, or who to ask about it.
  • Files Treemap Experimental — your repository as blocks sized by file and colored by type. Zoom into a folder to see what's actually in there.
  • Commits Treemap Experimental — the same map, colored by how much each area has been changing.
  • Agent Activity Treemap Experimental — the same map, live: where your agents are reading and editing right now, cooling as they move on.

Open these from the Commit Graph, or Visual History on its own with Show Visual History.

Work in Parallel — Worktrees and Agents

You stash to switch branches and lose your place. An agent is off working somewhere and you can't tell whether it's running, stuck, or waiting on you. Both get worse the more places your work lives.

Worktrees Without Losing Track

A worktree is a second checkout of the same repository — a branch you can leave open without stashing a thing. GitLens takes over the bookkeeping around it.

  • Create one from a branch, a commit, or a pull request, and open it in this window or a new one.
  • Every worktree gets its own working-changes row in the Commit Graph, so you can see which are dirty without opening them.
  • Move work across them — copy your working changes over, or apply a stash into another worktree.
  • Open a terminal in one, reveal it in your file manager, or delete it when you're done.

Know What Your Agents Are Doing

  • Agent sessions — Claude Code sessions show up in the Commit Graph with live state: working, idle, or needs input. Resume one straight from the row it's working on.
  • Start Work with Agent — pick an issue and GitLens creates the branch or worktree, then hands it to a coding agent.
  • Agent Kanban Experimental — switch the Graph into a board view that groups agent sessions by what needs your attention first.
  • Terminal links — your agent prints a SHA, branch, tag, or range in the terminal. Click it and land on it in the Commit Graph.
  • GitKraken MCP — give your coding agents structured access to your Git history, pull requests, and issues. Install it into Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, OpenCode, or your IDE's built-in chat.

Keep Pull Requests Moving

Pull requests are where work goes to wait. GitLens brings the whole round trip into the editor: Start Work turns an issue into a branch or worktree, Launchpad tracks what comes back, and you review and land it without leaving the graph.

Launchpad — Triage What's Waiting on You

Reviews shouldn't mean bouncing between your editor, GitHub, and your inbox. Launchpad puts every pull request you're involved in on one list, ordered by what's actually blocking someone. Check one out, or start its review with a coding agent, without opening a tab. Learn more

Open, Review, and Merge in Place

Open pull requests live in the Graph's Pull Requests panel, most recently updated first, marked with the same signals as Launchpad — mergeable, blocked, needs review, follow-up. Select one and its details open in place.

  • Review it here — Compare Changes for the diff, or hand the whole thing to a coding agent with Review with Agent...
  • Work on it — switch to the branch, open it in a worktree, or Focus the graph on just that branch, fetching the remote if you don't have it yet.
  • Land it — merge, squash, or rebase from a split button that confirms in place.
  • Stacked pull requests — GitHub stacks are grouped in the panel with each layer's position badged on its ref pills. Focusing any layer scopes the graph to the whole stack, and merging routes through GitHub's stack-aware merge, telling you how many pull requests will land.

Less Time Between Done and Merged — AI Review, Compose, and Rebase

Code that works isn't code that's merged. In between sit the commits nobody can follow, the message you have to write, the review round trip, and the afternoon the rebase ate. These shorten that stretch.

  • Review Changes — a review before you open the pull request, reading your change as a whole instead of file by file. Hand the findings to a coding agent and it makes the fixes.
  • Compose Commits — you've changed thirty things across a dozen files and it's one shapeless pile. Compose sorts it into separate commits that each do one thing. Recompose Commits does the same for a branch you've already committed to.
  • Explain Changes — ask what a commit, a stash, a branch, or your own working changes actually did, in plain English.
  • Generate Commit Message — and stash messages, and pull request titles and descriptions, written from what actually changed rather than from a blank box.
  • Generate Changelog — release notes for a branch, a tag, or any range of commits you've compared.

Rebase Without the Dread

Rebasing replays your commits onto a newer starting point. Rearranging them is the easy half. The conflicts are the part you're actually afraid of, and the reason the branch sat there for a week.

The Interactive Rebase Editor lets you drag commits to reorder them, or mark them to be squashed together, reworded, or dropped. As you rearrange, it works out which commits are going to conflict and warns you before you run anything, then collects every conflicted file into one panel showing both sides.

Automatic Rebase does the whole thing for you. It runs the rebase, resolves each conflict with AI, and shows you what it decided and how sure it was — stopping to ask when it isn't confident. If you don't like where it ended up, a single undo puts your branch back exactly as it was.

Integrations

Whatever you host on and track issues in, GitLens most likely speaks it — and pulls those pull requests and issues in beside your history.

Autolinking works across GitHub, GitLab, Jira, Gitea, Gerrit, Google Source, Bitbucket, Bitbucket Server, Azure DevOps, and custom servers. The self-managed editions, GitHub Enterprise and GitLab Self-Managed, need Pro. Rich integrations with GitHub, GitLab, and Jira add hover details for autolinks, correlations between pull requests, branches, and commits, and user avatars.

On an unusual domain? Add a custom remote to map it onto a built-in provider, or teach GitLens a service it doesn't know. You can define your own autolinks too, for references like Jira issues or Zendesk tickets.

Blame, Hovers, and CodeLens

Everything GitLens built its reputation on: free, unchanged, and on by default.

  • Inline and status bar blame — unobtrusive, line-by-line authorship at the end of the current line and in the status bar.
  • Rich hovers — hover a blame annotation for commit details, linked issues and pull requests, and quick actions.
  • Git CodeLens — recent change and authorship summaries at the top of each file and code block.
  • File annotations — whole-file blame, recent changes, and a heatmap, rendered right in the editor.
  • Revision navigation — step backward and forward through a file's history, one click at a time.
  • File History and Line History — follow a whole file or a single line across renames and merges.
  • Git Command Palette — a guided, step-by-step way to run Git commands without memorizing them, plus quick access to branch and file history, commit search, stashes, and repository status.

Not for you? Every annotation is cu

Issues· 919 open

View all issuesOpen on GitHub
  • #5900

    core: resolveRepository reports a GitHub repository hidden by OAuth App access restrictions as not-found

    area-integrationsbugUpdated Sep 29, 2026
  • #577

    HELP WANTED: Add internationalization (i18n) support to GitLens

    help wantedUpdated Sep 27, 2026
  • #3038

    Document is not blameable - Inline blame not working in DevDrive

    needs-more-infotriageUpdated Sep 24, 2026
  • #5886

    core-gitlens: add a single pull request read for Azure DevOps, Bitbucket Cloud and Bitbucket Server

    Updated Sep 24, 2026
  • #4220

    Check git.replaceTagsWhenPull preference

    triageUpdated Sep 24, 2026
  • #5760

    Integrate Kepler into "Start" Workflows

    needs-explorationUpdated Sep 23, 2026
  • #5819

    Walkthrough's first step still illustrates the removed Home view

    triageUpdated Sep 23, 2026
  • #5084

    extension-GitKraken gets added to MCPs automatically in Cursor

    triagedUpdated Sep 23, 2026
  • #5838

    Rebase pull request stacks with option for automatic rebasing

    triageUpdated Sep 22, 2026
  • #4500

    Unable to see PR information in the hover panel.

    triageUpdated Sep 22, 2026

> Tags

TypeScriptgitgithubvscodevscode-extension

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category开发工具
PricingOpen source

> Related tools

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具