GitLens
Overview
With over 25 million installs, GitLens is the most popular Git extension for Visual Studio Code. It gives you valuable insights into code authorship and unlocks the full power of Git in VS Code.

Supercharge Git in VS Code

Visualize
Commit Graph ✨
Easily visualize and keep track of all work in progress. Seamlessly interact with Git directly through full-featured context menus.Visual File History ✨
Quickly identify the most impactful changes to a file and by whom.Interactive Rebase Editor
Harness the power of interactive rebase without stressing over syntax or order. Easily drag and drop to reorder commits or configure commits to edit, squash, or drop.Side Bar Views
A set of views for visualizing, exploring, and managing many aspects of a Git repository including Commits, File History, Branches, Remotes, Stashes, Tags, Contributors, and more.Rich Comparisons
Visualize comparisons between branches, tags, commits, and more.Commit Details
Quickly view information about the commit’s author, commit ID, links to associated issues and pull requests, changed files, and more.Commit Graph ✨
Easily visualize and keep track of all work in progress. Seamlessly interact with Git directly through full-featured context menus.Commit Graph ✨
The easy-to-read GitKraken Commit Graph will help you visualize branch structure and commit history. Quickly search for commits or interact with branches, commits, tags, and more through full featured context menus to better understand the history and evolution of a project’s codebase
Learn more about GitLens Pro features.
Visual File History ✨
Quickly identify the most impactful changes to a file and by whom.Visual File History ✨
Clearly see the history of a file, including: when changes were made, how large they were, and who made them to quickly identify the most impactful changes to a file and by whom.
Learn more about GitLens Pro features.
Interactive Rebase Editor
Harness the power of interactive rebase without stressing over syntax or order. Easily drag and drop to reorder commits or configure commits to edit, squash, or drop.Interactive Rebase Editor

GitLens’ interactive rebase feature allows you to easily configure a rebase session by simply dragging and dropping commits to reorder them, and selecting which ones to edit, squash, or drop. This intuitive interface simplifies the complex task of rebasing and ensures that you can easily and efficiently manage their commit history.
Side Bar Views
A set of views for visualizing, exploring, and managing many aspects of a Git repository including Commits, File History, Branches, Remotes, Stashes, Tags, Contributors, and more.Side Bar Views

GitLens enhances the VS Code experience by adding various sidebar views such as Commits, File History, Branches, Remotes, Stashes, Tags, Contributors, and the Search & Compare view, each of which provides rich and helpful functionality. The default layout of these views can be easily customized to help you streamline your workflow, improve productivity, and easily access the information they need.
Rich Comparisons
Visualize comparisons between branches, tags, commits, and more.Rich Comparisons

With GitLens, you can compare commits or branches side by side, highlighting the differences between the two, and easily navigate to specific changes. Additionally, GitLens provides a “Search and Compare” view, which allows you to search for specific changes across multiple commits or branches and compare them in a rich and interactive manner. This feature helps you better understand the impact of changes, identify potential conflicts, and ultimately improve the quality of code.
Commit Details
Quickly view information about the commit’s author, commit ID, links to associated issues and pull requests, changed files, and more.Commit Details

Get contextual change info about your code.The Commit Details View updates as you move your cursor throughout the file with information about the commit that modified that line of code. Get quick information about the commit author, commit ID, links to Pull Requests, files modified in the commit, and more. This allows you to quickly make informed decisions and produce high-quality code.
Focus
Inline Blame Annotations and CodeLens
Inline code annotations help you better understand how your code changed and by whom.File Annotations
Toggle on-demand annotations for the whole file to see rich blame details, an overview of recent changes, and a heatmap of how recently lines were changed.Revision Navigation
Effortlessly drill into the history of a file to see how the code evolved over time.Status Bar Blame
See who changed the current line and when in an out-of-the-way place.Git Command Palette
An easy-to-use guided way to access and run many common Git commands.Rich Commit Search
Search and explore commit histories by message, author, files, and specific changes.Inline Blame Annotations and CodeLens
Inline code annotations help you better understand how your code changed and by whom.Inline Blame Annotations and CodeLens

GitLens uses CodeLens in VS Code to show commit details and author information, including the most recent commit and number of authors. Clickable links provide access to commit information, and a quick pick menu lets users compare, navigate, and explore each commit.
File Annotations
Toggle on-demand annotations for the whole file to see rich blame details, an overview of recent changes, and a heatmap of how recently lines were changed.File Annotations

See customizable file annotations in the editor’s status bar and in the gutter. Choose between, Blame – showing the commit and author for each line. Changes – highlighting any local, unpublished, changes or lines changed by the most recent commit. Heatmap – to show how recently lines were changed relative to all the other changes in the file.
Revision Navigation
Effortlessly drill into the history of a file to see how the code evolved over time.Revision Navigation

With just a click of a button, you can navigate backwards and forwards through any file’s history. Compare changes over time and see the revision history of the whole file or every individual line of code. Customizable and unobtrusive Git blame annotations are still shown on every line, telling you the author, date, and message for the last commit!
Status Bar Blame
See who changed the current line and when in an out-of-the-way place.Status Bar Blame

The status bar blame provides similar information as inline blame, with the added benefit of revealing additional details about the commit history for each line when hovering over the annotations.
Git Command Palette
An easy-to-use guided way to access and run many common Git commands.Git Command Palette

Save time and boost productivity with this efficient tool that eliminates the need to memorize Git commands. It offers guided, step-by-step access to numerous commonly used Git commands, in addition to quick access to commits (history and search), stashes, and status (current branch and working tree).
Rich Commit Search
Search and explore commit histories by message, author, files, and specific changes.Rich Commit Search

The Rich Commit Search feature in GitLens enables you to efficiently search for commits and perform various actions on branches, commits, tags, and more through fully-featured context menus. This saves you significant time and effort in navigating and exploring Git repositories, allowing you to focus on writing code.
Collaborate
Workspaces ☁️
Work with and manage multiple repositories with the ability to convert to and from a VS Code workspace.Contributors View
See each contributor and explore the details about their contributions.Commit Graph ✨
View your team’s work in progress and understand how it’s all related via the visual graph of branches and commits.Worktrees ✨
Avoid interrupting your work in progress when reviewing pull requests. Simply create a new worktree without impacting your other work in progress.Git Host Integrations
Gain additional context from associated issues and pull requests to collaborate more effectively.LiveShare Integration
Quickly see presence and connect to a teammate to start a real-time collaboration LiveShare session.Workspaces ☁️
Work with and manage multiple repositories with the ability to convert to and from a VS Code workspace.GitKraken WorkSpaces ☁️
GitKraken Workspaces in GitLens are a convenient way to group and manage multiple repositories. Cloud workspaces store the metadata of the grouped repositories and can be accessed across machines and GitKraken products. They can easily be imported into or created from VS Code workspaces.
Contributors View
See each contributor and explore the details about their contributions.Contributors View

The Contributors view is a feature-rich sidebar that allows you to easily visualize, navigate, and explore contributors. The contributors panel displays a list of contributors ranked by the number of commits they have made to the current repository. This provides valuable insights to identify key contributors and areas of the codebase that require attention.
Commit Graph ✨
View your team’s work in progress and understand how it’s all related via the visual graph of branches and commits.Commit Graph ✨
The easy-to-read GitKraken Commit Graph will help you visualize branch structure and commit history. With its visual format and full-featured context menus, you can quickly search for commits and interact with branches, commits, tags, and more, streamlining your team’s workflow and improving your productivity.
Learn more about GitLens Pro features.
Worktrees ✨
Avoid interrupting your work in progress when reviewing pull requests. Simply create a new worktree without impacting your other work in progress.Worktrees ✨
Create Worktrees that allow multiple branches to be checked-out at once on the same repository. This makes it easier to develop on, or test multiple branches, by minimizing the context switching between branches.
Learn more about GitLens Pro features.
Git Host Integrations
Gain additional context from associated issues and pull requests to collaborate more effectively.Git Host Integrations

GitLens integrates with various remote Git providers, such as GitHub, GitLab, Bitbucket, and Azure DevOps. Easily access insights from pull requests and issues without having to leave your codebase. All integrations provide auto-linking, while advanced integrations offer more hover information and the ability to associate pull requests with branches/commits and avatars.
LiveShare Integration
Quickly see presence and connect to a teammate to start a real-time collaboration LiveShare session.LiveShare Integration

Quickly see presence and connect to a teammate to start a real-time collaboration LiveShare session. The ability to quickly see the presence of teammates with GitLens provides a powerful tool for developers to collaborate in real-time, share their expertise, and work more efficiently together. It can help teams also reduce the time and effort required to resolve issues or implement new features.
Connect
Git Hosting Integrations
Enrich many aspects of GitLens with additional context from issues and pull requests without leaving your IDE.Autolinks
Easily link to external references from your commit messages, like Jira issues or Zendesk tickets.GitHub Enterprise & GitLab Self-Managed
Provide avatars for commit authors, richer details for auto-linked issues and pull requests, and see pull requests associated with commits and branches.LiveShare Integration
Quickly see presence and connect to a teammate to start a real-time collaboration LiveShare session.Single Sign On ✨
Simplify account & license management for your teams.Git Hosting Integrations
Enrich many aspects of GitLens with additional context from issues and pull requests without leaving your IDE.Git Hosting Integrations

GitLens provides rich integrations with many remote providers, including GitHub, GitHub Enterprise, GitLab, Gitea, Gerrit, Bitbucket, Bitbucket Server, Azure DevOps and custom servers. Quickly gain insights from pull requests and issues without leaving your codebase.
Autolinks
Easily link to external references from your commit messages, like Jira issues or Zendesk tickets.Autolinks

GitLens integrates with popular Git repository hosts like GitHub, GitLab, and Bitbucket, to provide you with a seamless experience for managing issues and pull requests. Auto-linking lets you navigate between code changes and related issues or pull requests without leaving your codebase.
GitHub Enterprise & GitLab Self-Managed
Provide avatars for commit authors, richer details for auto-linked issues and pull requests, and see pull requests associated with commits and branches.GitHub Enterprise & GitLab Self-Managed

With GitLens Pro, GitLab Self-Managed and GitHub Enterprise users can see avatars for commit authors, richer details for auto-linked issues and merge requests, as well as merge requests associated with commits and branches. This feature helps you save time and stay focused on your work, ultimately improving your productivity and efficiency.
LiveShare Integration
Quickly see presence and connect to a teammate to start a real-time collaboration LiveShare session.LiveShare Integration

Quickly see presence and connect to a teammate to start a real-time collaboration LiveShare session. The ability to quickly see the presence of teammates with GitLens provides a powerful tool for developers to collaborate in real-time, share their expertise, and work more efficiently together. It can help teams also reduce the time and effort required to resolve issues or implement new features.
Single Sign On ✨
Simplify account & license management for your teams.Single Sign On ✨
Increase security through our SSO integration with IdPs like Okta, Google Identity Platform, Azure Active Directory, and Ping Identity. Using SSO helps to reduce IT costs, ease developer onboarding, and provides greater security.
Learn more about GitLens Pro features.
Accelerate

Install GitLens for Free
With over 25 million installs, GitLens is one of the most popular VS Code extensions. Period. GitLens offers in-depth, contextual Git details, helping developers gain valuable insights and unlock powerful Git features.