Supercharge Git and unlock untapped knowledge within your repository to better understand, write, and review code. Focus, collaborate, accelerate.
GitLens is a powerful open-source extension for Visual Studio Code.
GitLens supercharges your Git experience in VS Code. Maintaining focus is critical, extra time spent context switching or missing context disrupts your flow. GitLens is the ultimate tool for making Git work for you, designed to improve focus, productivity, and collaboration with a powerful set of tools to help you and your team better understand, write, and review code.
GitLens sets itself apart from other Git tools through its deep level of integration, versatility, and ease of use. GitLens sits directly within your editor, reducing context switching and promoting a more efficient workflow. We know Git is hard and strive to make it as easy as possible while also going beyond the basics with rich visualizations and step-by-step guidance and safety, just to name a few.
Install GitLens by clicking Install
on the banner above, or from the Extensions side bar in VS Code, by searching for GitLens.
Use Switch to Pre-Release Version
on the extension banner to live on the edge and be the first to experience new features.
All features are free to use on all repos, except for features,
- marked with a
Pro
require a trial or paid plan for use on privately-hosted repos - marked with a
Preview
require a GitKraken account, with access level based on your plan, e.g. Free, Pro, etc
See the FAQ for more details.
Features | Labs | Pro | FAQ | Support and Community | Contributing | Contributors | License
Quickly glimpse into when, why, and by whom a line or code block was changed. Zero-in on the most important changes and effortlessly navigate through history to gain further insights as to how a file or individual line's code evolved. Visualize code authorship at a glance via Git blame annotations and Git CodeLens. Seamlessly explore Git repositories with the visually-rich Commit Graph. Gain valuable insights via GitLens Inspect, and much more.
- Blame, CodeLens, and Hovers β Gain a deeper understanding of how code changed and by whom through in-editor code annotations and rich hovers.
- File Annotations β Toggle on-demand whole file annotations to see authorship, recent changes, and a heatmap.
- Revision Navigation β Explore the history of a file to see how the code evolved over time.
- Side Bar Views β Powerful views into Git that don't come in the box.
- Commit Graph
Pro
β Visualize your repository and keep track of all work in progress. - Launchpad
Preview
β Stay focused and keep your team unblocked. - Code Suggest
Preview
β Free your code reviews from unnecessary restrictions. - Cloud Patches
Preview
β Easily and securely share code with your teammates. - Worktrees
Pro
β Simultaneously work on different branches of a repository. - Visual File History
Pro
β Identify the most impactful changes to a file and by whom. - GitKraken Workspaces
Preview
β Easily group and manage multiple repositories. - Interactive Rebase Editor β Visualize and configure interactive rebase operations with a user-friendly editor.
- Comprehensive Commands β A rich set of commands to help you do everything you need.
- Integrations β Simplify your workflow and quickly gain insights via integration with your Git hosting services.
Gain a deeper understanding of how code changed and by whom through in-editor code annotations and rich hovers.
Provides historical context about line changes through unobtrusive blame annotation at the end of the current line and on the status bar.
Inline blame annotations Status bar blame annotationsπ‘ Use the Toggle Line Blame
and Toggle Git CodeLens
commands from the Command Palette to turn the annotations on and off.
Adds contextual and actionable authorship information at the top of each file and at the beginning of each block of code.
- Recent Change β author and date of the most recent commit for the file or code block
- Authors β number of authors of the file or code block and the most prominent author (if there is more than one)
Hover over blame annotations to reveal rich details and actions.
Use on-demand whole file annotations to see authorship, recent changes, and a heatmap. Annotations are rendered as visual indicators directly in the editor.
File Blame annotations File Changes annotations File Heatmap annotationsπ‘ On an active file, use the Toggle File Blame
, Toggle File Changes
, and Toggle File Heatmap
commands from the Command Palette to turn the annotations on and off.
With just a click of a button, you can navigate backwards and forwards through the history of any file. Compare changes over time and see the revision history of the whole file or an individual line.
Our views are arranged for focus and productivity, although you can easily drag them around to suit your needs.
GitLens Inspect as shown above has been manually moved into the Secondary Side Barπ‘ Use the Reset Views Layout
command to quickly get back to the default layout.
An x-ray or developer tools Inspect into your code, focused on providing contextual information and insights to what you're actively working on.
- Inspect β See rich details of a commit or stash.
- Line History β Jump through the revision history of the selected line(s).
- File History β Explore the revision history of a file, folder, or selected lines.
- Visual File History
Pro
β Quickly see the evolution of a file, including when changes were made, how large they were, and who made them. - Search & Compare β Search and explore for a specific commit, message, author, changed file or files, or even a specific code change, or visualize comparisons between branches, tags, commits, and more.
Quick access to many GitLens features. Also the home of GitKraken teams and collaboration services (e.g. GitKraken Workspaces), help, and support.
- Home β Quick access to many features.
- Cloud Patches
Preview
β Easily and securely share code with your teammates - GitKraken Workspaces
Preview
β Easily group and manage multiple repositories together, accessible from anywhere, streamlining your workflow. - GitKraken Account β Power-up with GitKraken Cloud Services.
Shows additional views that are focused on exploring and managing your repositories.
- Commits β Comprehensive view of the current branch commit history, including unpushed changes, upstream status, quick comparisons, and more.
- Branches β Manage and navigate branches.
- Remotes β Manage and navigate remotes and remote branches.
- Stashes β Save and restore changes you are not yet ready to commit.
- Tags β Manage and navigate tags.
- Worktrees
Pro
β Simultaneously work on different branches of a repository. - Contributors β Ordered list of contributors, providing insights into individual contributions and involvement.
- Repositories β Unifies the above views for more efficient management of multiple repositories.
Convenient and easy access to the Commit Graph with a dedicated details view.
- Commit Graph
Pro
β Visualize your repository and keep track of all work in progress.
Easily visualize your repository and keep track of all work in progress.
Use the rich commit search to find exactly what you're looking for. Its powerful filters allow you to search by a specific commit, message, author, a changed file or files, or even a specific code change. Learn more
π‘Quickly toggle the Graph via the Toggle Commit Graph
command.
π‘Maximize the Graph via the Toggle Maximized Commit Graph
command.
Launchpad brings all of your GitHub pull requests into a unified, actionable list to better track work in progress, pending work, reviews, and more. Stay focused and take action on the most important items to keep your team unblocked. Learn more
Liberate your code reviews from GitHub's restrictive, comment-only feedback style. Like suggesting changes on a Google-doc, suggest code changes from where you're already coding β your IDE and on anything in your project, not just on the lines of code changed in the PR. Learn more
Easily and securely share code changes with your teammates or other developers by creating a Cloud Patch from your WIP, commit or stash and sharing the generated link. Use Cloud Patches to collaborate early for feedback on direction, approach, and more, to minimize rework and streamline your workflow. Learn more
Efficiently multitask by minimizing the context switching between branches, allowing you to easily work on different branches of a repository simultaneously.
Avoid interrupting your work in progress when needing to review a pull request. Simply create a new worktree and open it in a new VS Code window, all without impacting your other work.
GitKraken Workspaces allow you to easily group and manage multiple repositories together, accessible from anywhere, streamlining your workflow. Create workspaces just for yourself or share (coming soon in GitLens) them with your team for faster onboarding and better collaboration. Learn more
Quickly see the evolution of a file, including when changes were made, how large they were, and who made them. Use it to quickly find when the most impactful changes were made to a file or who best to talk to about file changes and more.
Easily visualize and configure interactive rebase operations with the intuitive and user-friendly Interactive Rebase Editor. Simply drag & drop to reorder commits and select which ones you want to edit, squash, or drop.
Stop worrying about memorizing Git commands; GitLens provides a rich set of commands to help you do everything you need.
A guided, step-by-step experience for quickly and safely executing Git commands.
Use a series of new commands to:
- Explore the commit history of branches and files
- Quickly search for and navigate to (and action upon) commits
- Explore a file of a commit
- View and explore your stashes
- Visualize the current repository status
Context switching kills productivity. GitLens not only reveals buried knowledge within your repository, it also brings additional context from issues and pull requests providing you with a wealth of information and insights at your fingertips.
Simplify your workflow and quickly gain insights with automatic linking of issues and pull requests across multiple Git hosting services including GitHub, GitHub Enterprise Pro
, GitLab, GitLab Self-Managed Pro
, Jira, Gitea, Gerrit, Google Source, Bitbucket, Bitbucket Server, Azure DevOps, and custom servers.
All integrations provide automatic linking, while rich integrations with GitHub, GitLab and Jira offer detailed hover information for autolinks, and correlations between pull requests, branches, and commits, as well as user avatars for added context.
Use autolinks to linkify external references, like Jira issues or Zendesk tickets, in commit messages.
Our incubator for experimentation and exploration with the community to gather early reactions and feedback. Below are some of our current experiments.
Use the Explain panel on the Inspect view to leverage AI to help you understand the changes introduced by a commit.
Use the Generate Commit Message
command from the Source Control view's context menu to automatically generate a commit message for your staged changes by leveraging AI.
When you're ready to unlock the full potential of GitLens and our DevEx platform and enjoy all the benefits on your privately-hosted repos, consider upgrading to GitLens Pro. With GitLens Pro, you'll gain access to Pro features on privately-hosted repos.
To learn more about the pricing and the additional features offered with GitLens Pro, visit the GitLens Pricing page. Upgrade to GitLens Pro today and take your Git workflow to the next level!
Yes. All features are free to use on all repos, except for Pro
features, which require a trial or paid plan.
While GitLens offers a remarkable set of free features, a subset of Pro
features tailored for professional developers and teams, require a trial or paid plan for use on privately-hosted repos β use on local or publicly-hosted repos is free for everyone. Additionally Preview
features may require a paid plan in the future and some, if cloud-backed, require a GitKraken account.
Preview Pro
features instantly for free for 3 days without an account, or start a free GitLens Pro trial to get an additional 7 days and gain access to Pro
features to experience the full power of GitLens.
Pro
features are free for use on local and publicly-hosted repos, while a paid plan is required for use on privately-hosted repos. Preview
features may require a paid plan in the future.
Visit the GitLens Pricing page for detailed pricing information and feature matrix for plans.
Support documentation can be found on the GitLens Help Center. If you need further assistance or have any questions, there are various support channels and community forums available for GitLens:
Found a bug? Have a feature request? Reach out on our GitHub Issues page.
Join the GitLens community on GitHub Discussions to connect with other users, share your experiences, and discuss topics related to GitLens.
For any issues or inquiries related to GitLens, you can reach out to the GitKraken support team via the official support page. They will be happy to assist you with any problems you may encounter.
With GitLens Pro, you gain access to priority email support from our customer success team, ensuring higher priority and faster response times. Custom onboarding and training are also available to help you and your team quickly get up and running with a GitLens Pro plan.
GitLens is an open-source project that greatly benefits from the contributions and feedback from its community.
Your contributions, feedback, and engagement in the GitLens community are invaluable, and play a significant role in shaping the future of GitLens. Thank you for your support!
Want to contribute to GitLens? Follow the CONTRIBUTING docs to get started.
Contributions to the documentation are greatly appreciated. If you find any areas that can be improved or have suggestions for new documentation, you can submit them as pull requests to the GitLens Docs repository.
A big thanks to the people that have contributed to this project πβ€οΈ:
- Zeeshan Adnan (@zeeshanadnan) β contributions
- Alex (@deadmeu) β contributions
- Abdulrahman (Abdu) Assabri (@abdusabri) β contributions
- Grey Baker (@greysteil) β contributions
- Loris Bettazza (@Pustur) β contributions
- Brian Bolte (@bolte-17) β contributions
- Zach Boyle (@zaboyle) β contributions
- Tony Brix (@UziTech) β contributions
- Matt Buckley (@Mattadore) β contributions
- Lee Chang (@MeltingMosaic) β contributions
- Amanda Cameron (@AmandaCameron) β contributions
- Martin Campbell (@martin-css) β contributions
- Brett Cannon (@brettcannon) β contributions
- Barney Carroll (@barneycarroll) β contributions
- Andrea Cigana (@ciganandrea) β contributions
- Ash Clarke (@ashclarke) β contributions
- Travis Collins (@TravisTX) β contributions
- Matt Cooper (@vtbassmatt) β contributions
- Skyler Dawson (@foxwoods369) β contributions
- Andrii Dieiev (@IllusionMH) β contributions
- egfx-notifications (@egfx-notifications) β contributions
- Segev Finer (@segevfiner) β contributions
- Cory Forsyth (@bantic) β contributions
- John Gee (@shadowspawn) β contributions
- Geoffrey (@g3offrey) β contributions
- Omar Ghazi (@omarfesal) β contributions
- Neil Ghosh (@neilghosh) β contributions
- Guillaume Rozan (@grozan) β contributions
- Guillem GonzΓ‘lez Vela (@guillemglez) β contributions
- Vladislav Guleaev (@vguleaev) β contributions
- Dmitry Gurovich (@yrtimiD) β contributions
- hahaaha (@hahaaha) β contributions
- Victor Hallberg (@mogelbrod) β contributions
- Ken Hom (@kh0m) β contributions
- Yukai Huang (@Yukaii) β contributions
- Justin Hutchings (@jhutchings1) β contributions
- Roy Ivy III (@rivy) β contributions
- Helmut Januschka (@hjanuschka) β contributions
- jogo- (@jogo-) β contributions
- Nils K (@septatrix) β contributions
- Chris Kaczor (@ckaczor) β contributions
- Aidos Kanapyanov (@aidoskanapyanov) β contributions
- Allan Karlson (@bees4ever) β contributions
- Nafiur Rahman Khadem (@ShafinKhadem) β contributions
- Mathew King (@MathewKing) β contributions
- Lior Kletter (@Git-Lior) β contributions
- Chase Knowlden (@ChaseKnowlden) β contributions
- Andrei Korigodski (@korigod) β contributions
- Kwok (@mankwok) β contributions
- Marc Lasson (@mlasson) β contributions
- John Letey (@johnletey) β contributions
- Stanislav Lvovsky (@slavik-lvovsky) β contributions
- Peng Lyu (@rebornix) β contributions
- CΓ©dric Malard (@cmalard) β contributions
- Asif Kamran Malick (@akmalick) β contributions
- Sam Martin (@smartinio) β contributions
- mcy-kylin (@mcy-kylin) β contributions
- Mark Molinaro (@markjm) β contributions
- Ahmadou Waly Ndiaye (@sir-kain) β contributions
- Nguyen Long Nhat (@torn4dom4n) β contributions
- Dave Nicolson (@dnicolson) β contributions
- Aurelio Ogliari (@nobitagit) β contributions
- Raaj Patil (@arrpee) β contributions
- Kevin Paxton (kpaxton) β contributions
- Connor Peet (@connor4312) β contributions
- Maxim Pekurin (@pmaxim25) β contributions
- Leo Dan PeΓ±a (@leo9-py) β contributions
- Aman Prakash (@gitgoap) β contributions
- Arunprasad Rajkumar (@arajkumar) β contributions
- David Rees (@studgeek) β contributions
- Rickard (@rickardp) β contributions
- Johannes Rieken (@jrieken) β contributions
- Daniel RodrΓguez (@sadasant) β contributions
- Guillaume Rozan (@rozangu1) β contributions
- ryenus (@ryenus) β contributions
- Felipe Santos (@felipecrs) β contributions
- Andrew Savage (@andrewsavage1) β contributions
- Zack Schuster (@zackschuster) β contributions
- Matt Seddon (@mattseddon) β contributions
- Ahmadali Shafiee (@ahmadalli) β contributions
- Shashank Shastri (@Shashank-Shastri) β contributions
- Skybbles (@Luxray5474) β contributions
- Brendon Smith (@br3ndonland) β contributions
- Ross Smith II (@rasa) β contributions
- Oleg Solomka (@legomushroom) β contributions
- Miguel Solorio (@misolori) β contributions
- SpaceEEC (@SpaceEEC) β contributions
- stampyzfanz (@stampyzfanz) β contributions
- sueka (@sueka) β contributions
- Mike Surcouf (@mikes-gh) β contributions
- Alexey Svetliakov (@asvetliakov) β contributions
- Takashi Tamura (@tamuratak) β contributions
- Andy Tang (@thewindsofwinter) β contributions
- Dmitry Ulupov (@dimaulupov) β contributions
- Alexey Vasyukov (@notmedia) β contributions
- Ivan Volzhev (@ivolzhevbt) β contributions
- x13machine (@x13machine) β contributions
- Alwin Wang (@alwinw) β contributions
- Ian Wilkinson (@sgtwilko) β contributions
- Brian Williams (@Brcrwilliams) β contributions
- Adaex Yang (@adaex) β contributions
- Yan Zhang (@Eskibear) β contributions
- Zyck (@qzyse2017) β contributions
- Yonatan Greenfeld (@YonatanGreenfeld) β contributions
- WofWca (@WofWca) β contributions
- δΈθ§ζ (@nooooooom) β contributions
- Ian Chamberlain (@ian-h-chamberlain) β contributions
- Brandon Cheng (@gluxon) β contributions
- yutotnh (@yutotnh) β contributions
- may (@m4rch3n1ng) β contributions
- bm-w (@bm-w) β contributions
- Tyler Johnson (@TJohnsonSE) β contributions
Also special thanks to the people that have provided support, testing, brainstorming, etc:
- Brian Canzanella (@bcanzanella)
- Matt King (@KattMingMing)
And of course the awesome vscode team!
This repository contains both OSS-licensed and non-OSS-licensed files.
All files in or under any directory named "plus" fall under LICENSE.plus.
The remaining files fall under the MIT license.