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.
- Install it — search for GitLens in the Extensions side bar in VS Code.
- Sign in — a free GitKraken account opens the Commit Graph on your public repos, and starts your trial if you want it everywhere.
- 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 Graphworks too.) - 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.
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