GitLens Documentation

GitLens+ Support Issues Discussions  

GitLens Release Notes

Find out what’s new, what’s fixed, or just take a trip down memory lane remembering those bugs of yesterday.

Check out our Changelog to see linked issues and past changes.

Install Current Version Now

✨ indicates GitLens+ features

Version 13.6

Thursday, May 11, 2023

GitLens 13.6 brings a range of enhancements and additions to the Commit Graph and refinements to our context menus. We’ve made improvements to the layout, condensing author names and column titles into avatars and icons when sized to minimums, and added flexibility of rearranging and moving columns as desired. This allows for a more streamlined and personalized GitLens experience. We have also updated the Commit Graph’s toolbar to dynamically show a Push or Pull action, depending on a branch’s state in relation to its upstream remote.

Context Menu Updates

To improve structure and findability of our menu options, we’ve made several changes to our context menus. Many Copy Remote URL commands, which were previously in a Copy As submenu, have been moved to a Share submenu within GitLens views, which aligns with VS Code menus. And once microsoft/vscode#176316 lands we will move the rest of the Copy Remote URL commands into the appropriate Share submenu. This reorganization consolidates related commands and makes it easier to locate and utilize them.

Similarly, the Copy SHA and Copy Message commands, previously nested in submenus, have been promoted to the root of the context menu. This elevates their visibility and enables quick access for performing actions on commits. Additionally, the Copy Relative Path command has been relocated to the root of the context menu. These adjustments enhance convenience when working with file paths.

✨ Commit Graph Enhancements

We’ve made it easier to customize your Commit Graph experience as well as improvements for better readability when in compact layouts.

Compact Graph Improvements

Previously unmovable columns within the Commit Graph can now be rearranged and customized according to your preferences. This flexibility enables you to arrange the columns in a way that best suits their workflow and priorities.

In addition, we have implemented a more compact layout by removing the commit icon when avatars are hidden. This optimization maximizes the utilization of screen space and results in a cleaner and more streamlined visual representation.

Moreover, the Author column now displays avatars instead of text when sized to its minimum width. That combined with the compact layout for the Graph column provide a nice compact experience with no loss of fidelity.

Column Headers

Commit Graph column headers have received dynamic behavior for enhanced readability. When the Commit Graph columns are compacted, the column headers seamlessly switch from displaying text to icons. This adaptation ensures that crucial information remains visible, even in constrained display settings.

Stash Improvements

We’ve added the ability to rename stashes. If you are like me and often stash changes in a rush with very poor names, e.g. "wip" and then kick yourself later for not providing a more descriptive name, the this feature is for you. You can now rename any stash at any time.

You can now search within stashes using the Commit Graph, the Search & Compare view, or the Search Commits command. This improvement facilitates efficient navigation and retrieval of specific stash entries.


  • Adds the ability to rename stashes — closes #2538
    • Adds a new Rename Stash… command to the Stashes view
  • Adds new Commit Graph features and improvements
    • Adds a Push or Pull toolbar button depending the current branch being ahead or behind it’s upstream
    • Adds support for the Commit Graph over Visual Studio Live Share sessions
    • Adds the ability to move all of the columns, including the ones that were previously unmovable
    • Automatically switches column headers from text to icons when the column’s width is too small for the text to be useful
    • Automatically switches the Author column to shows avatars rather than text when the column is sized to its minimum width
  • Adds the ability to search stashes when using the commit search via the Commit Graph, Search & Compare view, or the Search Commits command
  • Adds an Open Visual File History command to the new File History submenu on existing context menus
  • Allows the Repositories view for virtual repositories
  • Honors the git.repositoryScanIgnoredFolders VS Code setting
  • Adds Share, Open Changes, and Open on Remote (Web) submenus to the new editor line numbers (gutter) context menu
  • Adds an Open Line Commit Details command to the Open Changes submenus on editor context menus
  • Adds an Open Changes submenu to the row context menu on the Commit Graph


  • Refines and reorders many of the GitLens context menus and additions to VS Code context menus
    • Moves Copy Remote * URL commands from the Copy As submenu into the Share submenu in GitLens views
    • Adds a Share submenu to Source Control items
    • Moves Copy SHA and Copy Message commands on commits from the Copy As submenu into the root of the context menu
    • Moves Copy Relative Path command on files from the Copy As submenu into the root of the context menu
    • Moves file history commands into a File History submenu
    • Moves Open * on Remote commands into Open on Remote (Web) submenu
    • Renames the Commit Changes submenu to Open Changes
    • Renames Show Commit command to Quick Show Commit and Show Line Commit command to Quick Show Line Commit for better clarity as it opens a quick pick menu
  • Changes the file icons shown in many GitLens views to use the file type’s theme icon (by default) rather than the status icon
    • Adds a gitlens.views.commits.files.icon setting to specify how the Commits view will display file icons
    • Adds a gitlens.views.repositories.files.icon setting to specify how the Repositories view will display file icons
    • Adds a gitlens.views.branches.files.icon setting to specify how the Branches view will display file icons
    • Adds a gitlens.views.remotes.files.icon setting to specify how the Remotes view will display file icons
    • Adds a gitlens.views.stashes.files.icon setting to specify how the Stashes view will display file icons
    • Adds a gitlens.views.tags.files.icon setting to specify how the Tags view will display file icons
    • Adds a gitlens.views.worktrees.files.icon setting to specify how the Worktrees view will display file icons
    • Adds a gitlens.views.contributors.files.icon setting to specify how the Contributors view will display file icons
    • Adds a gitlens.views.searchAndCompare.files.icon setting to specify how the Search & Compare view will display file icons
  • Renames Delete Stash… command to Drop Stash… in the Stashes view
  • Removes the commit icon when hiding avatars in the Commits view to allow for a more compact layout
  • Limits Git CodeLens on docker files — closes #2153
  • Shows progress notification for deep links earlier in the process — closes #2662


  • Fixes #2664 – Terminal run Git command can be "corrupted" if there is previous text waiting in the terminal
  • Fixes #2660 – Commands executed in the terminal fail to honor found Git path
  • Fixes #2654 – Toggle zen mode not working until you restart vscode
  • Fixes #2629 – When on VSCode web, add handling for failing repo discovery
  • Fixes many issues with using GitLens over Visual Studio Live Share sessions
  • Fixes mouse scrubbing issues with the minimap on the Commit Graph
  • Fixes Refresh Repository Access and Reset Repository Access Cache commands to always be available
  • Fixes state not being restored on the Home webview
  • Fixes getting the oldest unpushed commit when there is more than 1 remote
  • Fixes an issue with the quick input on the Git Command Palette unexpectedly going back to the previous step
  • Fixes GitLens access tooltip not being visible when hovering in the Commit Graph


  • Removes "Open Commit on Remote" command from the VS Code Timeline view as it can no longer be supported — see microsoft/vscode#177319

Version 13.5

Thursday, Apr 6, 2023

With 13.5, we’ve added the ability to switch to an alternate panel layout for the Commit Graph, which moves the Commit Graph into the bottom panel and adds a new Commit Graph Details view alongside on the right, for more convenient and persistent access. You can now also switch to a compact layout for the Graph column and shrink the Branch / Tag column to a single icon to reduce the space and allow you to focus on what you deem most important. You can now take action on your pull requests in the Focus View, with the new ability to create or switch branches or worktrees. We’ve also heard your feedback that the Commit Details view pinning was confusing and hard to work with, so 13.5 includes many improvements to make that experience better. We’ve also continued our quest to reduce the size and improve performance of GitLens and have shaved another ~7% off the GitLens bundle.

✨ Commit Graph Layouts

The new panel layout brings even more flexibility and customization options to GitLens. While using the panel layout, GitLens moves the Commit Graph into the bottom panel and adds a new Commit Graph Details view alongside on the right. If the layout in the bottom panel doesn’t suit your needs you can move the Commit Graph around to other locations (side bar, secondary side bar, etc) to suit your preferences. Whether you prefer to have the Commit Graph in the editor or in a separate panel, GitLens makes it easy to switch and find the layout that works best for you.

To switch to the panel layout, simply click on the Commit Graph settings cog located at the top right of the Commit Graph. From there, select the "Switch Commit Graph to Panel Layout" option, and if you want to switch back follow the same steps and choose "Switch Commit Graph to Editor Layout".

Compact Graph Column Layout

With the new compact Graph column layout, GitLens provides a more streamlined and compact layout to reduce the space required to visualize the commit history and branch relationships.

To enable the new compact Graph Column layout, right click on the Graph column header, and select the "Compact Graph Column Layout" option. If you want to switch back follow the same steps and choose "Default Graph Column Layout".

Pull Requests on Local Branches

You can now see pull requests (PRs) for your local branch upstreams directly on the local branches themselves. You no longer have to hunt for the local branch’s upstream on the Commit Graph to see the associated PR.

Publish Local Branches from Commit Graph

Publishing local branches directly from the Commit Graph is a nice productivity boost. You can quickly and easily publish your local changes without having to switch to the Branches view or use the command line.

✨ Focus View Pull Request Actions

The Focus View is no longer read-only! We’ve introduced new actions within Focus View, aimed at enhancing your workflow and productivity. You can now easily create a branch or worktree, or switch/open an existing one, for a PR directly from the Focus View page, streamlining the process of reviewing or contributing to pull requests. As a quick worktree refresher, creating a worktree from the PR will let you review or contribute to multiple PRs simultaneously without affecting your current branch and working tree.

Commit Details Interaction Improvements

We’ve heard your feedback on the Commit Details view and the confusion and difficulty with using the pinning feature. We updated the visual appearance of the pinned state, so its easier to know when Commit Details is pinned. Additionally, we’ve introduced navigation controls that enable you to move back and forth through the commits you’ve recently viewed, helping to avoid losing context as you navigate through your code.

Thank you to our contributors

Shout-out to all of our awesome contributors for this release!


  • Adds the ability to switch to an alternate panel layout for the Commit Graph — closes #2602 and #2537
    • Adds a new context menu from the Commit Graph Settings (cog) to switch between the "Editor" and "Panel" layouts
    • Adds a gitlens.graph.layout setting to specify the layout of the Commit Graph
    • editor – Shows the Commit Graph in an editor tab
    • panel – Shows the Commit Graph in the bottom panel with an additional Commit Graph Details view alongside on the right
  • Adds new Commit Graph features and improvements
    • Adds a compact layout to the Graph column of the Commit Graph
    • Adds a context menu option to the header to toggle between the "Compact" and "Default" layouts — closes #2611
    • Shows pull request icons on local branches when their upstream branch is associated with a pull request
    • Adds tooltips to work-in-progress (WIP) and stash nodes
    • Adds a "Publish Branch" context menu action to local branches without an upstream branch — closes #2619
    • Lowers the minimum width of the "Branch / Tag" column
  • Adds actions to Focus View Pull Requests
    • Switch to or create a local branch
    • Create or open a worktree from the branch
  • Adds a Generate Commit Message (Experimental)… command to the SCM context menus


  • Reduces the size of the GitLens (desktop) bundle which reduces memory usage and improves startup time — ~7% smaller (1.21MB -> 1.13MB)
    • Consolidates the "extension" side of all the GitLens webviews/webview-views into a unified controller and code-splits each webview/webview-view into its own bundle
    • Allows for very minimal code to be loaded for each webview/webview-view until its used, so if you never use a webview you never "pay" the cost of loading it
  • Changes Open Associated Pull Request command to support opening associated pull requests with the current branch or the HEAD commit if no branch association was found — closes #2559
  • Improves the "pinning" of the Commit Details view
    • Avoids automatically pinning
    • Changes the pinned state to be much more apparent
  • Changes Commit Details to always open diffs in the same editor group as the currently active editor — closes #2537


  • Fixes #2597 – Allow disabling "Open worktree for pull request via GitLens…" from repository context menu
  • Fixes #2612 – Clarify GitLens telemetry settings
  • Fixes #2583 – Regression with Open Worktree for Pull Request via GitLens… command
  • Fixes #2252 – "Copy As"/"Copy Remote File Url" copies %23 instead of # in case of Gitea — thanks to PR #2603 by WofWca (@WofWca)
  • Fixes #2582Visual File History background color when in a panel
  • Fixes #2609 – If you check out a branch that is hidden, GitLens should show the branch still
  • Fixes tooltips sometimes failing to show in Commit Graph rows when the Date column is hidden
  • Fixes #2595 – Error when stashing changes

Version 13.4

Thursday, Mar 16, 2023

With 13.4, we’ve introduced an experimental new AI feature to assist with writing commit messages, improved GitLens performance by reducing its size, made improvements to the ✨Commit Graph, and accepted community contributions as well as many bug fixes from community feedback.

AI-Generated Commit Messages (Experimental)

We’ve introduced a new experimental feature to assist with writing commit messages by leveraging OpenAI. To start, stage some changes you want to commit and generate a commit message for and then run the “Generate Commit Message (Experimental)” command from the Command Palette. From there you will be guided through the process of accepting to send the diff of your staged changes to OpenAI and the entry of your OpenAI key. Once completed, the generated commit message will be entered into the commit input box on the Source Control sidebar. You can also enter additional context about your changes in the commit box and those will also be sent to help generate a better message.

Additionally, you can customize the gitlens.experimental.generateCommitMessagePrompt setting to control the prompt used to structure and format the generated commit message. You could have it structure commit messages in the conventional commit style, or you can have fun with it and make your commit messages in the style of a pirate, Shakespeare, etc.

This is a very early peek into features and ideas that can leverage AI – look forward to much more in the near future!

GitLens Size Reduction

Over the last couple releases we’ve made significant progress on optimizing the footprint of GitLens. We’ve focused a lot on the bundle sizes to allow for faster start-up times of both the extension itself and all of our webviews. These optimizations also help reduce our memory usage. We are continually looking for opportunities to optimize and reduce our footprint so look for more progress in the future!

Here are some numbers:

  • GitLens desktop bundle has been reduced by ~37% from 1.91MB to 1.21MB
  • GitLens web bundle (for / has been reduced by ~39% from 2.05MB to 1.24MB
  • GitLens Commit Graph webview has been reduced by ~27% from 1.03MB to 758KB and that is including the new minimap and rich scroll markers
  • GitLens Home view has been reduced by ~41% from 267KB to 160KB
  • GitLens Visual File History view has been reduced by ~9% from 508KB to 461KB

✨ Commit Graph Enhancements

Upstream Tracking

It’s now possible to effortlessly keep track of upstreams of your local branches in the commit graph. The upstreams of visible local branches, along with their corresponding commit history, will be displayed in the graph even if other remote branches are filtered out from your settings.

We’ve also revised the wording of the remote filter setting to "Hide Remote-only Branches.

Graph Alignment

The graph column is now more left-aligned, making it easier to read and follow the history of a branch at a glance.

Branches and Tags on Remote Repositories

You can now see the tips of your branches and tags in the Commit Graph on remote repositories! Previously, opening a remote repository in the graph would show only the current branch. Currently, we are still limited to only showing commits for the current branch, so the included branches and tags are ones pointing to commits in the current branch’s commit history.

Sunsetting GitLens Insiders (Replaced with Pre-release)

We’ve deprecated the GitLens Insiders edition in favor of a Pre-release version which is directly supported inside VS Code and is much easier to opt-in to and out of. Existing users of GitLens Insiders should have been automatically migrated to the Pre-release version. The Pre-release version of GitLens is a nightly build of GitLens, just as the GitLens Insiders edition was.

To opt-in to the Pre-release edition, select GitLens from the extensions sidebar and press “Switch to Pre-Release Version”.

Thank you to our contributors

Shout-out to all of our awesome contributors for this release!


  • Adds an experimental Generate Commit Message (Experimental) command to use OpenAI to generate a commit message for staged changes
    • Adds a gitlens.experimental.generateCommitMessagePrompt setting to specify the prompt to use to tell OpenAI how to structure or format the generated commit message — can have fun with it and make your commit messages in the style of a pirate, etc
  • Adds auto-detection for .git-blame-ignore-revs files and excludes the commits listed within from the blame annotations
  • Adds a Open Git Worktree… command to jump directly to opening a worktree in the Git Command Palette
  • Adds a Copy Relative Path context menu action for active editors and file nodes in sidebar views
  • Adds the ability to see branches and tags on remote repositories (e.g. GitHub) on the Commit Graph
    • Currently limited to only showing them for commits on the current branch, as we aren’t yet able to show all commits on all branches


  • Improves the display of items in the Commit Graph
    • When showing local branches, we now always display the upstream branches in the minimap, scrollbar markers, and graph rows
    • When laying out lanes in the Graph column, we now bias to be left aligned when possible for an easier to read and compact graph visualization
  • Improves Open Worktree for Pull Request via GitLens… command to use the qualified remote branch name, e.g. owner/branch, when creating the worktree
  • Removes Insiders edition in favor of the pre-release edition
  • Reduces the size of the GitLens bundle which improves startup time
    • GitLens’ extension bundle for desktop (node) is now ~24% smaller (1.58MB -> 1.21MB)
    • GitLens’ extension bundle for web ( is now ~6% smaller (1.32MB -> 1.24MB)


  • Fixes #2550 – Related pull request disappears after refresh
  • Fixes #2549 – toggle code lens does not work with gitlens.codeLens.enabled == false
  • Fixes #2553 – Can’t add remote url with git@ format
  • Fixes #2083, #2539 – Fix stashing staged changes — thanks to PR #2540 by Nafiur Rahman Khadem (@ShafinKhadem)
  • Fixes #1968 & #1027 – Fetch-> fatal: could not read Username — thanks to PR #2481 by Skyler Dawson (@foxwoods369)
  • Fixes #2495 – Cannot use gitlens+ feature on public repo in some folders
  • Fixes #2530 – Error when creating worktrees in certain conditions
  • Fixed #2566 – hide context menu in output panel — thanks to PR #2568 by hahaaha (@hahaaha)
  • Fixes #2533 – Current Branch Only graph filter sometimes fails
  • Fixes #2504 – Graph header theme colors were referencing the titlebar color properties
  • Fixes #2527 – shows added files for Open All Changes
  • Fixes an issue where trial status can be shown rather than a purchased license
  • Fixes graph issue where scroll markers do not update until mouseover when changing the gitlens.graph.scrollMarkers.additionalTypes setting.

Version 13.3

Thursday, Feb 23, 2023

Supercharge your Git game with GitLens 13.3: the latest update to help you master Git like a pro. With 13.3 we’re introducing Workspace Focus View, Deep Linking Support, and Commit Graph Improvements featuring the new (experimental) minimap and changes column.

GitLens also just got a whole lot faster with the release of version 13.3! Thanks to some serious bundle slimming, the startup times have significantly improved.

  • GitLens’ extension bundle for desktop (node) is now ~18% smaller
  • GitLens’ extension bundle for web ( is now ~37% smaller
  • GitLens’ Commit Graph webview bundle is now ~31% smaller

✨Focus View (Preview)

With the preview of GitLens Focus View, you can streamline your workflow and prioritize your tasks with ease. The Focus View feature gives you a comprehensive list of all your most important work across all your GitHub repos. No more jumping back and forth between multiple pages or repos – GitLens Focus View makes it simple and efficient to keep track of and manage your work progress.

The new Focus View will provide you with a summary of Pull Requests and Issues relevant to you for the repositories grouped in your Workspace.

  • My Pull Requests: shows all GitHub PRs opened by you, assigned to you, or awaiting your review
  • My Issues: shows all issues created by you, assigned to you, or that mention you.

Instead of hunting for these pieces of information separately, you can get a holistic view of what you’re working on.

*Note Focus View is currently in a Preview Only state, it is subject to change in the future.

✨ Commit Graph improvements

Minimap (Experimental)

Click the Toggle Minimap icon in the right corner of the Commit Graph top bar to toggle the Minimap on and off. As this is an experimental feature, it is off by default – and we would love to hear your feedback and suggestions.

The idea behind the Minimap is to provide a whole new dimension to the Commit Graph. You can quickly see the activity of the repo, see HEAD/upstream, branches (local and remote), and easily jump to them.

The green line showcases HEAD while search results are depicted by yellow lines. The highlighted region shows the Commit Graph area that is in view. Markers are arranged in two rows of stacked blocks:

  • In the upper row, the blue blocks signify remote branches, while the brown blocks refer to tags.
  • Within the lower row, the pink blocks denote stashes, and the blue blocks represent local branches.

We really want to hear your feedback – this is still a very early feature and we’re currently still playing with colors, and additional features. To leave us feedback such as what do you think, is this useful, what does it have that you like, what is it missing, etc. reach out to us on the GitLens, GitHub Discussion board.

Changes column (lines added/deleted)

Reduce time and effort required to navigate through code changes, with the changes column in GitLens. The changes column provides a visual representation of changes made to files in each commit, with green bars indicating added lines and red bars indicating deleted lines.

This visual display allows you to quickly identify the extent of changes made to files across multiple commits, making it easier to pinpoint specific areas of code that have been modified.

You can toggle the Change Column by right clicking the graph header and clicking "Show Changes".

Scroll Markers (Rich scrollbar)

Scroll Markers adds a rich layer of information to the Commit Graph scrollbar. Now you can quickly find and jump to checked-out branches, selected rows, search results, as well as important points such as HEAD and refs. Similar to Overview Ruler in VS Code, Scroll Markers provide a visual indicator on the scrollbar.

Our intention with Scroll Markers is to save you time and effort by allowing you to quickly identify and jump to the relevant sections of your Git history. It’s a powerful new addition to the Commit Graph to help streamline workflow.

Branch upstream status

The Commit Graph now shows the upstream status of local branches with an upstream. You’ll be able to quickly identify when your local branch is out of sync with its upstream branch with the new indicator, which shows how many commits are ahead or behind your upstream branch.

You can also double-click on the upstream indicator, to pull or push the pending commits to bring your local branch back in sync with its upstream. This makes it easy to keep track of upstream changes to your local branches and keep them up to date.

Work In Progress Row improvements

With the latest Work In Progress Row improvements, with a single right click, you can access the WIP contextual menu. Giving you access to a range of useful options, including Stash All Changes, Open Details, and Open Source Control. These features allow you to more effectively manage your WIP.

Deep linking support

Deep linking provides you with the ability to easily share specific remote repositories, commits, branches, and tags by copying the link to your clipboard and pasting it into a Jira issue or a Slack conversation for example.

The link will then open in the Commit Graph and can be used to quickly access and review relevant artifacts. With deep linking support, you can improve collaboration and communication by seamless sharing of important information related to your Git repos.


  • Adds new Commit Graph features and improvements
    • Adds a new experimental minimap of commit activity to the Commit Graph
    • Adds a new experimental Changes column visualizing commit changes
    • Adds markers to the Commit Graph scroll area indicating the location of the selected row, search results, current branch, upstream, and more
    • Adds the ability to show upstream (ahead/behind) status on local branches with an upstream
    • Adds a double-click action on the status to pull (when behind) or push (when ahead) pending changes
    • Adds context menu actions to Push, Pull, and Fetch the local branch
    • Adds a gitlens.graph.showUpstreamStatus setting to toggle upstream (ahead/behind) indicators on branches
    • Adds the ability to show any associated pull requests with branches
    • Adds a double-click action on the PR icon to open the PR in the browser
    • Adds context menu actions to Open Pull Request on Remote and Copy the PR URL
    • Adds a gitlens.graph.pullRequests.enabled setting to toggle PR icons — closes #2450
    • Adds a context menu to the WIP row — closes #2458
    • Adds a double-click action on commit rows to open the Commit Details view
    • Improves Author and Avatar tooltips to now also show the contributor’s email address, if available
    • Improves Date tooltips to now always show both the absolute and relative date
  • Adds the ability to copy and share links directly to repositories, branches, commits, and tags in the Commit Graph
    • Adds context menu actions to copy direct links in the Share submenu
  • Improves the Worktree creation experience
    • Adds a prompt after the worktree is created to choose how to open the worktree
    • Adds a worktrees.openAfterCreate setting to specify how and when to open a worktree after it is created
    • Ensures new worktrees are created from the "main" repo, if already in a worktree
  • Adds a new remote command to the Git Command Palette to add, prune, and remove remotes
  • Adds a Open Worktree for Pull Request via GitLens… context menu command on pull requests in the GitHub Pull Requests and Issues extension’s views
    • Opens an associated worktree, if one exists, otherwise it creates a new worktree for the pull request
  • Adds settings to control the format of commits in the GitLens views


  • Greatly reduces the size of many of GitLens’ bundles which improves startup time
    • GitLens’ extension bundle for desktop (node) is now ~18% smaller
    • GitLens’ extension bundle for web ( is now ~37% smaller
    • GitLens’ Commit Graph webview bundle is now ~31% smaller
  • Changes the Contributors view to be shown by default on the GitLens sidebar


  • Removes the use of an external color library for the File Heatmap annotations and webview themes — reduces the bundled extension size


  • Fixes #2355 – Search by changes stops working in version 13.x.x
  • Fixes #2473 – Commit graph status bar show wrong last fetched date
  • Fixes #2409 – Commit Graph Show Current Branch Only shows unrelated commits from other branches
  • Fixes an issue where pinning not being respected in Commit Details view
  • Fixes graph issue where search results that are merge commits are not highlighted when the gitlens.graph.dimMergeCommits setting is enabled
  • Fixes graph issue where rows with tags belonging to a hovered branch are not highlighted when the gitlens.graph.highlightRowsOnRefHover setting is enabled

Version 13.2

Tuesday, Dec 20th, 2022

Since the release of GitLens 13, we know how the power of GitLens+ features like the Commit Graph, have been helping supercharge your dev workflow. That’s why we’re excited to present GitLens 13.2, with all new (and highly requested) Graph improvements like filtering, to quickly focus on what is most important to you. We’ve also streamlined the Commit Graph interface with a new header bar, providing context and quick access to switch between repositories or branches, and even fetch to keep up to date. Get ready to level up your Git game with GitLens 13.2!


GitLens 13.2 introduces filtering , which allows you to display a subset of your graph’s information and helps you hone in on specific details of your graph that matter the most.

Filtering Capabilities

Use graph filtering in GitLens to get laser focused on the branch you’re working on and its remote:

  • Only Show the Current Branch

    • Display only the branch that you’re currently working on and it’s remote. In order to focus your attention on the things landing in this branch, and then quickly unfilter to "zoom" back out and see everything in flight.
  • Hide Remote Branches

    • Hides commits from the graph view that are only on remote branches.
  • Hide Tags

    • Hides all tags that point to commit rows.
  • Hide Stashes

    • Hides all stash rows.
  • Dim Merge Commit Rows

    • Deemphasizes merge commit rows.

Graph UX Improvements

We’ve updated the user interface, so you can get to all your favorite features even faster. Now, you can access change repo, account status, and filtering from the top of the Commit Graph page.

Header Updates

By merging the contextual information from the footer into the header, including the new Branch Picker and Fetch Action we’ve made it easier for you to manage your branches and work more effectively.

  • Branch Picker

    • Save time, by easily selecting the branch you want from the drop down branch picker.
  • Fetch Action

    • Easily keep your local repo up-to-date and in sync with the fetch action.

Shortcut Keys

Using the new keyboard shortcuts, SHIFT+UP and SHIFT+DOWN on the Commit Graph helps you locate what you need more efficiently and effectively by staying within the branch and moving between graph rows. This can be particularly useful if you are working on a complex project with many branches.


  • Adds many all-new Commit Graph features and improvements
    • Adds the ability to filter commits, branches, stashes, and tags
    • Adds a new Filter Graph dropdown button at the start of the search bar
    • Adds ability to quickly switch between Show All Local Branches and Show Current Branch Only branch filtering options
      • Show All Local Branches — displays all local branches (default)
      • Show Current Branch Only — displays only the current branch and it’s upstream remote (if exists and Hide Remote Branches isn’t enabled)
    • Adds ability to hide all remote branches, stashes, and tags
    • Adds the ability to dim (deemphasize) merge commits
    • Adds a new header bar to provide quick access to common actions
    • Shows the currently selected repository with the ability to switch repositories when clicked (if multiple repositories are open)
    • Shows the current branch with the ability to switch branches when clicked
    • Provides a fetch action which also shows the last fetched time
    • Also moves GitLens+ feature status and feedback links to the top right
    • Adds new ability to reorder columns by dragging and dropping column headers (not all columns are reorderable)
    • Adds new keyboard shortcuts
      • Use shift+down arrow and shift+up arrow to move to the parent/child of the selected commit row
      • Holding the ctrl key with a commit row selected will highlight rows for that commit’s branch
    • Adds new settings
    • Adds a gitlens.graph.dimMergeCommits setting to specify whether to dim (deemphasize) merge commit rows
    • Adds a gitlens.graph.scrollRowPadding setting to specify the number of rows from the edge at which the graph will scroll when using keyboard or search to change the selected row


  • In the Commit Graph, increases the time to highlight associated rows when hovering over a branch to 1s
  • Removes the status bar from the Commit Graph as it was replaced by the new header bar


  • Fixes #2394 – Work in progress file diff compares working tree with working tree, instead of working tree with head
  • Fixes #2207 – Error when trying to push individual commit
  • Fixes #2301 – Create Worktree button doesn’t work in certain cases
  • Fixes #2382 – commits disappearing from commit details view when they shouldn’t
  • Fixes #2318 – GitLens need to login again after VS Code insiders upgrade every day
  • Fixes #2377 – Missing Azure Devops Icon
  • Fixes #2380 – Autolink fails with curly braces
  • Fixes #2362 – Visual File History becomes unavailable when the workspace contains private repo
  • Fixes #2381 – can’t use scrollbar in ‘Commit Graph’ view
  • Fixes an issue where focusout hides toolbar actions for the graph
  • Fixes an issue where Switch to Another Branch… doesn’t work in the Graph editor toolbar
  • Fixes graph issue with row highlighting/dimming sticking when the graph loses focus
  • Fixes graph issue with branches remaining hovered/extended when the mouse leaves the graph

Version 13.1

Thursday, November 17th, 2022

With GitLens 13, we released the power of GitLens+ features like the Commit Graph, Visual File History, and Worktrees to ALL users on local and public repos. No account required. Learn more about the changes happening with GitLens in this article.

Commit Graph Enhancements

Search History

Find what you seek with ease! Quickly navigate through your search history by using the UP⇧ or DOWN⇩ arrow keys.

New Search Filter @me

Want to see only your commits? Search For @me to highlight only your commits.

Faster Interactive Rebase Editor

With GitLens 13.1, we overhauled the Interactive Rebase Editor. It is now dramatically faster, especially for large rebases. We also streamlined the user experience with a persistent header and footer to ensure you always have important context visible and can quickly start or abort the rebase. Also, anytime the commit author and committer are different, you will see both of their avatars.

Commit Details View Usage

Need additional details to complete your rebase more efficiently? Now, as you navigate commits, we show the selected commit details in the Commit Details view.

Commit Details View Improvements

Custom Autolinks

Custom and basic provider-based autolinks are now shown in the Autolinks section.

Customizable Settings

You can now customize the Commit Details view from the GitLens Settings editor to personalize how it looks and behaves so you can focus on the most important details.

Terminal Links Can Use the Commit Details View

Terminal Links for commits in VS Code’s integrated terminal now use the Commit Details view to provide rich details about the selected commit.

GitLens Home View Updates

Keeping a home tidy is important! We’ve streamlined the Home view to make it even easier to get started with GitLens, learn about its features, and how to personalize your experience.


  • Adds Commit Graph enhancements
    • Adds the ability to set keyboard shortcuts to commits and stashes on the Commit Graph — closes #2345
    • Keyboard shortcuts can be applied to many of the gitlens.graph.* commands and should use gitlens:webview:graph:focus && !gitlens:webview:graph:inputFocus for their "When Expression" to only apply when the Commit Graph is focused
    • For example, add the following to your keybindings.json to allow Ctrl+C to copy the selected commit’s SHA to the clipboard
      "key": "ctrl+c",
      "command": "gitlens.graph.copySha",
      "when": "gitlens:webview:graph:focus && !gitlens:webview:graph:inputFocus"
  • Automatically selects the HEAD commit in the Commit Graph when switching branches
  • Improves performance of updating the Commit Graph when the repository changes
  • Improves performance by avoiding unnecessary updates to the Commit Details view when selection changes
  • Adds a @me search filter to the search box
  • Adds history navigation to the search box in the Commit Graph
    • When the search field is focused, use the up arrow and down arrow to navigate through any previous searches that yielded results
    • Adds ability to reset to any commit in the Commit Graph and GitLens views — closes #2326
  • Adds Interactive Rebase Editor performance and UX improvements
    • Changes the header and footer to always be visible
    • Shows the Commit Details view on commit selection
    • Adds a gitlens.rebaseEditor.showDetailsView setting to specify when to show the Commit Details view for the selected row in the Interactive Rebase Editor
    • Adds full (multiline) commit message
    • Adds the f fixup shortcut key to UI
    • Consolidates the UI for author and committer information into a stack of avatars
    • Adds emoji support for commit messages — closes #1789
    • Ensures that large rebases show rich commit details
  • Adds Commit Details view improvements
    • Adds custom and non-rich integration-based autolinks and improves autolink display
    • Improves performance by avoiding unnecessary updates
    • Avoids "pinning" commits by default when opened from the Commit Graph, Visual File History, quick picks, etc
    • Adds a Open in Commit Graph button even when showing uncommitted changes
  • Adds new sections and settings to the GitLens Interactive Settings
    • Adds a new Commit Details view section
    • Adds a new Terminal Links section
    • Adds autolink configuration to the Hovers section
  • Adds a @me search filter to commit search in the Search & Compare view and quick pick
  • Adds product usage telemetry
    • Honors the overall VS Code telemetry settings and add a gitlens.telemetry.enabled setting opt-out specifically for GitLens


  • Changes the Home view to always be available and polishes the experience
  • Changes SHA terminal links to use the Commit Details view — closes #2320
    • Adds a gitlens.terminalLinks.showDetailsView setting to specify whether to show the Commit Details view when clicking on a commit link
  • Changes to uses VS Code as Git’s core.editor for terminal run commands — closes #2134 thanks to PR #2135 by Nafiur Rahman Khadem @ShafinKhadem
    • Adds a gitlens.terminal.overrideGitEditor setting to specify whether to use VS Code as Git’s core.editor for GitLens terminal commands
  • Polishes webview (Commit Graph, Interactive Rebase Editor, etc) scroll bars to match VS Code’s style and behavior


  • Fixes #2339 – Commit details "Autolinks" group shows wrong count
  • Fixes #2346 – Multiple cursors on the same line duplicate inline annotations; thanks to PR #2347 by Yonatan Greenfeld @YonatanGreenfeld
  • Fixes #2344 – copying abbreviated commit SHAs is not working
  • Fixes #2342 – Local remotes are incorrectly treated as private
  • Fixes #2052 – Interactive Rebase fails to start when using xonsh shell due to command quoting
  • Fixes #2141 – GitLens’ rebase UI randomly fails loading interactive rebase when performed outside of VSC
  • Fixes #1732 – Phantom rebase-merge directory (rm -rf ".git/rebase-merge")
  • Fixes #1652 – Closing interactive rebase editor after "git rebase –edit" aborts rebase-in-progress
  • Fixes #1549 – Fetch does not work when local branch name differs from remote branch name
  • Fixes #2292 – Push button in BranchTrackingStatusNode of non-current branch does not trigger "Push force"
  • Fixes #1488 – Open Folder History not working with non-English language pack
  • Fixes #2303 – "Googlesource" gerrit only supports two levels of domain — thanks to PR #2304 by Matt Buckley @Mattadore
  • Fixes #2315 – Commit details secondary side bar banner doesn’t stay dismissed
  • Fixes #2329 – Remember UI settings in Commit Details panel
  • Fixes #1606 – Adjusts capitalization of "URL" — thanks to PR #2341 by Dave Nicolson @dnicolson
  • Fixes issue where we weren’t honoring the default gravatar style (gitlens.defaultGravatarsStyle) in certain cases
  • Fixes graph issue where stashes are sometimes assigned the wrong column
  • Fixes graph issue with commit rows being incorrectly hidden in some cases
  • Fixes graph issue with merge commits not being hidden correctly in some cases
  • Fixes some graph issues with hover on branch/tag labels

Version 13.0

Monday, October 17th, 2022

Find what you seek.

✨GitLens+ Features for All on Local & Public Repos

With GitLens 13.0, we are excited to bring the power of GitLens+ features like the Commit Graph, Visual File History, and Worktrees to ALL users on local and public repos. No account required. Learn more about the changes happening with GitLens in this article.

Here’s how to get started with each of the GitLens+ features with your local or public repos:

✨Commit Graph – Now out of Preview!

We’re delighted to announce that the Commit Graph is out of Preview, and is full featured! This means you may now interact with the Commit Graph directly and take actions like:

  • Interact with branches, commits, tags and more with right-click context menus
  • Double click a branch to checkout a branch
  • Search and filter for commits
  • Get information about Pull Requests

Full context menu support

Interact with your branches, commits, and more! Context menus are now available when you right click on any branch, tag, commit, or author in the Commit Graph. You may even interact with the Commit Graph column headers to the author, date or SHA columns. So much power!

Context menu actions include but are not limited to:

  • Switch to Branch
  • Revert Commit
  • Switch to Commit
  • Create Branch
  • Merge
  • Rebase
  • Create Worktree
  • Create Pull Request

Rich commit search

Find exactly what you are looking for with the rich search on the powerful new Commit Graph.

Whether searching for a specific commit, message, author, a changed file or files, or even a specific code change, the Commit Graph will highlight matching results across your entire repository. Use shortcut keys or the up/down arrows on the search bar to navigate the search results; F3 (also Cmd+G on macOS) goes to the next result from your selection while Shift+F3 ( also Shift+Cmd+G on macOS) goes to the previous. Additionally you can quickly jump to the first or last result, by holding Shift while clicking on the up/down arrows respectively – to make it easy to see when a file or change was introduced into the codebase.

Once you type search filtering criteria, use the arrow icons to move through each result.

PR information in form of icon

Wait, which branch has that PR?

If connected to one of the rich integrations with GitHub or GitLab, the Commit Graph will display a PR icon for any branch currently in PR. Right-click on the PR icon to open the PR on the GitHub or GitLab, or copy the URL.

Hiding remotes, branches or tags

Need to focus and have too many remotes or just want to curate how much is shown in your Commit Graph? Now you can hide entire remotes, or specific branches and tags. Hover over any branch or tag to access the “Hide” button or right-click to hide the whole remote, or just the local or remote branch, to help focus your Commit Graph.

All new home view

It’s a homecoming! Our GitLens home view has a new look, with quick links to our Getting Started guides, Integrations, Trial info, and Feature spotlights.

List or tree view in Commit Details View

The Commit Details View, which gives you contextual change info about your code, got a new toggle for List and Tree view.

To open the Commit Details view, open the command palette using Cmd+Shift+P and type: Show Commit Details view or navigate to the Commit Details view in the Side Bar.

Change Log


  • ✨ All GitLens+ features on public and local repos are now available to everyone — no account required!
    • We want to bring the power of GitLens+ features to more people without any gates.
  • ✨ Commit Graph is out of preview!
    • Rich search features to find exactly what you’re looking for:
    • Powerful filters to search by commit, message, author, a changed file or files, or even a specific code change
    • Searches look at ALL commits in a repository, not just what’s shown in the graph
    • PR support for connected rich integrations (GitHub/GitLab)
    • Contextual right-click menus with popular actions for commits, branches, tags, and authors
    • Personalization of your graph experience
    • Show and hide branches and columns
    • Settings UI for easy fine-grain control over advanced settings
  • Adds View as Tree option for changed files in the Commit Details view
  • Adds an Open in Commit Graph action to the hovers and commit quick pick menus


  • Updates the Home View with all new design and content
  • Changes the Show Commit action in the hovers to Show Details and opens the Commit Details view


  • Fixes #2203 – Autolinks missing under commit details
  • Fixes #2230 – j and k are inverted in ascending rebase order
  • Fixes #2195 – Cannot open new files from commit details
  • Fixes Commit Details view showing incorrect diffs for certain commits
  • Fixes Commit Details view showing incorrect actions for uncommitted changes
  • Fixes prioritization of multiple PRs associated with the same commit to choose a merged PR over others
  • Fixes Graph not showing account banners when access is not allowed and trial banners were previously dismissed

Version 12.2

Tuesday, August 30th, 2022

The new Commit Graph 🎨 in GitLens 12.2 will fix all your commitment problems…in your code 🥁 👩‍💻

✨Commit Graph – Preview

Users may now view the Commit Graph of their repository through GitLens.

This beloved feature from GitKraken Client helps visualize your repo commit history and give you information about branches, commits, and collaborators all in one view — making it easier to see contributions and help you make faster, more informed decisions.

To open the Commit Graph, open the command palette using the keyboard shortcut Cmd Shift P and type Show Commit Graph.

This will open a new tab and render your current repo’s commit history, where you may scroll through your history and resize any of the columns widths.

You may also access the Commit Graph by clicking this graph icon from the Source Control view in the Sidebar or Status Bar.

The Commit Graph is available to all users working on public repositories, and requires no account. Additionally, users with a paid GitLens+ subscription can use the Commit Graph with private repos.

For those on or, this also means you can open the Commit Graph on a web browser.

The Commit Graph is in Preview mode, and we’d love to hear your feedback in the Commit Graph discussion on GitHub.

Commit Details View

GitLens 12.2 also ships with a Commit Details View, which gives you contextual change info about your code.

To open the Commit Details View, open the command palette using Cmd Shift P and this time type: Show Commit Details View or navigate to the Commit Details View in the Sidebar.

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.

Click on a file to open the diff, and see what changed. You may also hover over the file name to access options like Open File, Open Changes with Working File, and Open Remote.

✨ GitHub Enterprise Integration

Next, GitLens+ now offers a richer integration with GitHub Enterprise.

Once authenticated, GitLens will enrich GitHub autolinks in the hovers. You’ll see your GitHub Enterprise avatar, links to related pull requests, along with a footnote of the pull request or issue details.

You’ll see similar details from the Sidebar views for any commit or branch associated with a pull request or issue.

✨ Single Sign On

Single Sign On is here, providing GitLens+ users with a more secure sign in method!

Requirements and configuration

Your GitKraken account may now initiate an Oauth authentication flow with the following supported Identity Providers (IdPs):

  • Azure Active Directory
  • Okta
  • Google Identity Platform
  • Ping Identity

Please note that your IdP will first need to be configured before setting up the connection in your GitKraken account. For assistance, please contact your IdP administrator or consult the IdP documentation for help.

Additional requirements:

  • Configurable only by GitKraken Owner or Admin of an organization
  • Subscribed to either the Teams or Enterprise plan

Documentation: How to set up SSO in GitKraken

Signing in with SSO

GitLens+ users should see a new option to Sign in with SSO from the login screen.

After clicking Sign in with SSO, the SSO form will open and ask for an email address to use for SSO login. The app will then check the email and determine whether the email address belongs to a single IdP for SSO. When the email address is successfully identified, the user will be taken to that IdP to login.

Once authenticated, the user may use GitLens+

More improvements

Stash naming defaults

When applying or popping a stash, GitLens will default the commit message input to the stash message.

And when stashing changes, the stash name will now default to any entry in the commit message input.

Stats in comparisons

There are now stats about additions & deletions in files nodes in comparisons. To get these stats, navigate to the Search & Compare view in the Sidebar and create a comparison between commits.

Search for text in Interactive Rebase Editor

And users may now search for text on the Interactive Rebase Editor using Ctrl F.

Change Log


  • Adds Commit Graph
  • Adds Commit Details View
  • Adds rich integration with GitHub Enterprise — closes #1210
    • Adds associated pull request to line annotations and hovers
      Pull requests on line annotation and hovers
    • Adds associated pull request to status bar blame
      Pull requests on status bar
    • Adds GitHub avatars
    • Adds associated pull requests to branches and commits in GitLens views
    • Adds rich autolinks for GitHub issues and merge requests, including titles, status, and authors
    • Adds rich support to Autolinked Issues and Pull Requests within comparisons to list autolinked GitHub issues and merge requests in commit messages
  • Adds new stash behaviors to use the Source Control (commit message) input box — closes #2081
    • When a stash is applied or popped and the Source Control input is empty, we will now update the Source Control input to the stash message
    • When stashing changes and the Source Control input is not empty, we will now default the stash message input to the Source Control input value
  • Adds the ability to search (Ctrl+F) for text on the Interactive Rebase Editor — closes #2050
  • Adds stats (additions & deletions) to files nodes in comparisons — closes #2078 thanks to help via PR #2079 by Nafiur Rahman Khadem (@ShafinKhadem)
  • Adds the ability to uniquely format uncommitted changes for the current line blame annotations — closes #1987
    • Adds a gitlens.currentLine.uncommittedChangesFormat setting to specify the uncommitted changes format of the current line blame annotation. NOTE: Setting this to an empty string will disable current line blame annotations for uncommitted changes
  • Adds variable expansion support to the gitlens.worktrees.defaultLocation setting
    • ${userHome} — the path of the user’s home folder
    • ${workspaceFolder} — the path of the folder opened in VS Code containing the specified repository
    • ${workspaceFolderBasename} — the name of the folder opened in VS Code containing the specified repository without any slashes (/)
  • Adds owner avatars to remotes in the Remotes view for GitHub remotes


  • Greatly improves performance of many view interactions when connected to a rich integration and pull request details are enabled, including:
    • Showing and refreshing the Commits view
    • Expanding commits, branches, and worktrees
  • Remembers chosen filter on files nodes in comparisons when refreshing
  • Changes display of filtered state of files nodes in comparisons
  • Improves diff stat parsing performance and reduced memory usage
  • Disallows comparisons with the working tree on the right-side (left-side still works as expected) and disables swapping
  • Uses VS Code as core.editor in rebase — closes #2084 thanks to PR #2085 by Nafiur Rahman Khadem (@ShafinKhadem)


  • Fixes #2156 – Reduce extension package size
  • Fixes #2136 – Search & Compare quickpick shouldn’t select the mode text when opening
  • Fixes #1896 – Cannot read property ‘fsPath’ of undefined
  • Fixes #1550 – Push button in commit widget does not trigger "Push force" when ALT is pressed.
  • Fixes #1991 – Git lens status bar entry has an incomprehensible accessibility label
  • Fixes #2125 – "git log" command in version 12.x is very slow
  • Fixes #2121 – Typo in GitLens header — thanks to PR #2122 by Chase Knowlden (@ChaseKnowlden)
  • Fixes #2082 – GitLens Home view unreadable in certain themes
  • Fixes #2070 – Quoted HTML / JSX syntax is not escaped correctly
  • Fixes #2069 – Heatmap – incorrect behavior of gitlens.heatmap.fadeLines with gitlens.heatmap.ageThreshold
  • Fixes an issue where choosing "Hide Current Branch Pull Request" from the Commits view overflow menu wouldn’t hide the PR node
  • Fixes an issue where stashes without a message aren’t displayed properly
  • Fixes an issue where the Stashes view empty state isn’t displayed properly when there are no stashes
  • Fixes typos via PR #2086 by stampyzfanz (@stampyzfanz), and PR #2043, PR #2040, PR #2042 by jogo- (@jogo-)
Have feedback about this article? Did we miss something? Let us know!
On this page