Skip to main content
For what differs between this platform and the others, see Platform Support.
Bitbucket repositories are connected to Gitar by installing the Gitar Bitbucket app, built on Atlassian’s Forge platform. The app handles authentication, permissions, and webhook delivery, so there are no tokens or secrets to manage. This guide covers Bitbucket Cloud. For self-hosted repositories, follow the Bitbucket Data Center guide.

Prerequisites

  • A Gitar organization (not a personal account) with the Admin role
  • A Bitbucket account with administrator access to the workspace you want to connect
  • Permission to install a Forge app on that Bitbucket workspace (workspace admin)

Setup Instructions

1

Open the connect dialog

In the Gitar dashboard, go to Settings → Configuration → Connections and click Connect Bitbucket (or use the “Connect your repositories” step during onboarding).
2

Connect your Bitbucket account

The first time you connect Bitbucket, Gitar asks you to authorize with your Bitbucket account via OAuth. This is a one-time step that lets Gitar list the workspaces you administer.
3

Select the workspace

Choose the Bitbucket workspace you want to connect to this Gitar organization. Workspaces already connected to your organization are marked as such, and workspaces connected to a different Gitar organization show as “Connected to another organization”. A workspace can only be linked to one Gitar organization at a time.
4

Install the Forge app

Gitar opens a new browser tab to Atlassian, where you install the Gitar Forge app.
Select the same workspace in Atlassian that you selected in Gitar. Installing on another workspace does not complete the pending connection. To link an app that is already installed, use Connect with a code.
5

Return to Gitar and wait

Atlassian does not redirect you back to Gitar after installation. Switch back to the Gitar browser tab yourself.
While waiting, the dialog shows Waiting for installation… and closes when Gitar detects the installation. Repository discovery continues in the background, so closing the dialog does not mean the full repository list is ready.

Connect with a code

If OAuth cannot list your workspace, or the app was installed before the workspace was linked to Gitar, use the connect-code option. You still need administrator access to the Bitbucket workspace.
  1. Select the intended Gitar organization and open the Bitbucket connect dialog.
  2. If Can’t see your workspace above? is shown, expand it to reveal Connect by code instead.
  3. If the app is not already installed, use Open the Gitar install link to install it on a workspace you administer.
  4. Select Generate a connect code and copy it.
  5. In that Bitbucket workspace’s settings, open Forge Apps → Gitar, paste the code, and select Connect. Return to Gitar to check the connection.
The code is single-use and expires at the time shown. Generating another code invalidates the previous one.

Repository Access

Gitar discovers workspace repositories in the background. Open Settings → Configuration to check the list and toggle individual repositories on or off. If repositories are missing after discovery finishes, use Refresh in the Repositories card to retry discovery, including repositories created after installation.

Permissions

The Gitar Forge app requests the following capabilities: Gitar encrypts your code in transit and at rest, and does not use it to train AI models. Repository code is cached on encrypted file volumes to improve performance, and caches can persist across processing tasks. See Security for details about code handling and retention.

Limitations

A workspace can only belong to one Gitar organization

One Gitar organization can connect multiple Bitbucket workspaces, but each workspace can only be linked to one Gitar organization at a time. Trying to connect a workspace already claimed by another Gitar organization fails, and the workspace list marks it “Connected to another organization” instead of letting you pick it. If a workspace needs to move to a different Gitar organization, disconnect it from the first before connecting it in the second.

App removal and credential failures

Gitar manages Forge credentials, so you do not need to rotate a PAT. Removing the Forge app disconnects the workspace and its repositories when Gitar processes the uninstall notification. Other credential failures are detected through failed token refreshes or clone operations. After repeated failures mark the connection unhealthy, Gitar emails the organization’s admins and shows a dashboard notification pointing to Settings → Configuration. A successful token refresh can clear a transient credential warning. Check whether the app is still installed and whether the connection recovers before reinstalling it. After reconnecting, confirm that the repositories you want reviewed are enabled.

Troubleshooting

This usually means the install either was not completed on Atlassian, or was completed on a different workspace than the one selected in Gitar. Make sure you install the Forge app on the same workspace you selected in the Gitar dialog, then switch back to the Gitar tab. If the dialog already timed out, use Reopen install link to try again.
A Bitbucket workspace can only be linked to one Gitar organization at a time. If you need to connect it here, disconnect it from the other organization first.
Confirm that your Bitbucket account has administrator access to the workspace, then reconnect your account from the Gitar dialog. If the workspace still does not appear, use Connect with a code.
Confirm the Gitar Forge app is installed on the workspace and that the specific repository is enabled (toggled on) in the Settings → Configuration card.