GitLens is a Git extension for VS Code that brings inline blame annotations, CodeLens authorship information, and an interactive commit graph directly into the editor. It provides a visual timeline of repository history with color-coded branch relationships, search, and filtering, alongside file-level annotations that show who last changed each line and why. The extension also functions as a cross-provider pull request manager, integrating with GitHub, GitLab, Bitbucket, and Azure DevOps to centralize PR and issue tracking within the IDE.
What distinguishes GitLens is its AI-powered Git assistant, which generates commit messages, pull request descriptions, and changelogs by analyzing staged changes and repository history. It also offers a cloud patch sharing platform that lets users share work-in-progress code as encrypted, revocable patches without pushing to a remote repository. For multi-repository workspaces, GitLens aggregates repositories from multiple providers into a unified dashboard, supports bulk actions, and enables one-click team onboarding by cloning all required repositories at once.
The extension includes a commit graph review mode for validating changes and preparing commits, along with inline code suggestions on pull requests and merge conflict validation. It supports worktree-based parallel development, allowing users to maintain separate working directories for different branches without stashing. GitLens also provides enterprise identity provider integration with SSO authentication and granular access control for shared patches.
GitLens is installed as a VS Code extension and provides its functionality through custom views, commands, and editor decorations.