⭐️ Git Integrations – Start Here
Start here to understand how LinearB connects to Git providers, what permissions are required, and which connection guide fits your environment.
LinearB connects to your Git provider to collect repository activity (pull requests, commits, branches, and related metadata). This data powers engineering metrics, workflow analytics, and automation features such as gitStream (when enabled).
Summary
- Pick your Git provider (GitHub, GitLab, Bitbucket, or Azure Repos) and follow the matching connection guide.
- Cloud providers typically use OAuth when possible, with PAT as a fallback.
- On-prem providers often require IP allowlisting and a server URL before you can authenticate.
- After connecting, add repositories and verify the integration status in Settings → Git.
Before you begin
What you’ll need
- LinearB role: Company Admin (recommended for setup and troubleshooting).
- Git provider permissions: Sufficient access to authorize an app or generate a token for the repositories you want to connect.
Plan notes
- Some providers and on-prem connections may require a paid LinearB plan.
- gitStream availability depends on your account setup and configuration.
Step 1 – Choose the correct connection guide
Select the guide that matches your Git provider and deployment type:
- Bitbucket Cloud
Bitbucket (Cloud) Connection Guide - Bitbucket Server (On-Prem / Data Center)
Bitbucket Server (On-Prem) Connection Guide - Azure Repos (Azure DevOps)
Connect Azure Repos Using a Personal Access Token - GitLab Cloud
Connect GitLab with a Personal Access Token (PAT) - GitLab Server (On-Prem)
GitLab Server (On-Prem) Connection Guide - GitHub (Cloud)
Connecting Your GitHub Account to LinearB - GitHub Enterprise Server (On-Prem)
GitHub Enterprise Server (On-Prem) Connection Guide
Step 2 – Connect the provider in LinearB
All Git providers follow the same high-level path in LinearB:
- In LinearB, go to Settings → Company Settings.
- Select the Git tab.
- Click Add Integration.
- Select your provider (for example, GitHub, GitLab, Bitbucket, or Azure DevOps).
- Follow the on-screen prompts to authenticate (OAuth) or paste your token (PAT).
Step 3 – Add repositories and confirm syncing
After the integration connects, select which repositories LinearB should scan:
- Open Settings → Git.
- Find your integration under Integrations and Repositories.
- Click Add Repositories.
- Select the repositories to include, then click Save Repositories.
Once saved, LinearB begins syncing repository data. Some providers may require extra time for initial backfill, depending on repository size and history.
Managing existing Git integrations
To reauthorize a connection, update monitoring rules, add repositories, or delete an integration, see: Managing Git Integrations .
- Reauthorize Git if authentication expires or authorization changes.
- Monitoring Rules to control how LinearB monitors branches and PRs.
- Delete Integration to remove a connection (and optionally its data, depending on your setup).
Troubleshooting & support
Common issues
- Missing repositories: Confirm the integration identity is a member/admin of the repo or org, and that the repo is eligible to sync.
- OAuth authorization blocked: Ask an org admin to approve the OAuth app or complete authorization.
- PAT failures: Verify token scopes/permissions match the requirements in the provider guide.
- On-prem connectivity issues: Confirm IP allowlisting, firewall rules, VPN/reverse proxy access, and server URL reachability.
- Delayed updates: Missing webhook permissions can force polling-based sync (for example, up to ~2 hours), depending on provider setup.
If you still can’t connect, contact support@linearb.io or visit the LinearB Help Center .
How did we do?
Service Metrics