Last updated: July 2025
GitLens supports a wide range of remote providers to enhance your Git workflow inside Visual Studio Code. Supported platforms include:
- GitHub (including GitHub Enterprise)
- GitLab
- Gitea
- Gerrit
- Bitbucket (Cloud and Server)
- Azure DevOps
You can also define custom remote providers or providers with custom domains.
Integration Capabilities
Basic integrations include:
- Auto-linking for issues and pull requests
Enhanced integrations (e.g., GitHub, GitLab) offer:
- Launchpad support to manage pull requests and workflows
- Rich hovers showing issue and PR details
- Pull request associations with branches and commits
- Avatars for contributors and reviewers
These integrations also add contextual commands to open or copy URLs to files, commits, branches, and comparisons directly from your remote provider.
Remote Command Reference
You can use the following GitLens commands to interact with files, commits, and repositories on your remote platform.
Files
- Open File from Remote (
gitlens.openFileFromRemote
) — Open a local file by specifying a remote file URL - Open File on Remote (
gitlens.openFileOnRemote
) — Open the current file or revision on the remote - Copy Remote File URL (
gitlens.copyRemoteFileUrlToClipboard
) — Copy the URL of the current file or revision - Open File on Remote From… (
gitlens.openFileOnRemoteFrom
) — Open a file/revision from a specific branch or tag - Copy Remote File URL From… (
gitlens.copyRemoteFileUrlFrom
) — Copy the file/revision URL from a specific branch or tag
Commits
- Open Commit on Remote (
gitlens.openCommitOnRemote
) — Open a commit on the remote - Copy Remote Commit URL (
gitlens.copyRemoteCommitUrl
) — Copy the URL of a commit
Branches
- Open Branch on Remote (
gitlens.openBranchOnRemote
) — Open the current branch on the remote - Copy Remote Branch URL (
gitlens.copyRemoteBranchUrl
) — Copy the URL of the current branch - Open Branches on Remote (
gitlens.openBranchesOnRemote
) — Open the list of branches on the remote - Copy Remote Branches URL (
gitlens.copyRemoteBranchesUrl
) — Copy the URL for all branches
Comparisons
- Open Comparison on Remote (
gitlens.openComparisonOnRemote
) — Open a diff comparison on the remote - Copy Remote Comparison URL (
gitlens.copyRemoteComparisonUrl
) — Copy the URL for the comparison
Pull Requests
- Open Pull Request on Remote (
gitlens.openPullRequestOnRemote
) — Open the associated pull request - Copy Pull Request URL (
gitlens.copyRemotePullRequestUrl
) — Copy the pull request URL
Repositories
- Open Repository on Remote (
gitlens.openRepoOnRemote
) — Open the entire repository in your browser - Copy Remote Repository URL (
gitlens.copyRemoteRepositoryUrl
) — Copy the repository URL for sharing or navigation
Connect GitHub or GitLab Integration
To connect GitHub or GitLab to GitLens, you’ll use your GitKraken account via the GitLens integrations dashboard.
Steps to Connect:
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
) and runGitLens: Manage Integrations
, or - Go to the GitKraken Account section in the GitLens Activity Bar and choose Integrations.

- If you’re not already signed in, log into your GitKraken account.
- Click Connect with GitHub or Connect with GitLab and complete the sign-in process.
- Select Complete Setup to return to Visual Studio Code and activate the integration.
You can connect multiple integrations if needed.

Community users are limited to basic functionality only.
GitHub Enterprise Server and GitLab Self-Managed Integration PRO
GitLens Pro supports advanced integration with GitHub Enterprise Server and GitLab Self-Managed.
Once authenticated, GitLens enhances autolinks for these services in hover cards. You’ll see:
- User avatars
- Links to related pull requests and issues
- Pull request and issue details directly in the Sidebar views

Connect GitHub Enterprise Server or GitLab Self-Managed
To connect a self-hosted GitHub or GitLab instance:
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
) and select Preferences: Open User Settings (JSON) - In
settings.json
, add agitlens.remotes
entry with your domain and provider type:
"gitlens.remotes": [{ "domain": "git.corporate-url.com", "type": "GitHub" }]
Or for GitLab:
"gitlens.remotes": [{ "domain": "git.corporate-url.com", "type": "GitLab" }]
- Open the self-hosted repository in Visual Studio Code
- Open the Remotes View
- Click Connect to Remote

If the Connect to Remote option doesn’t appear, double-check that your JSON entry matches the example format.
- When prompted, provide a Personal Access Token (PAT) with the required scopes and press Enter to complete setup
Jira Integration PRO
GitLens Pro supports integration with Jira Cloud via your GitKraken Account. This allows GitLens to automatically link Jira issue keys (e.g., ABC-123
) in commit messages and views wherever autolinks are supported.

This feature is only available for Pro subscription tiers or higher.
Connect the Jira Integration
- Open the GitLens Sidebar and navigate to the GitKraken Account view.
- Select Cloud Integrations.
- Choose Jira Cloud and follow the prompts to connect.
- Allow GitKraken access to your Atlassian Account.
You can also configure this via the Integration Settings in a browser.
