Git repository connections

This page describes Git repository connections in Developer Connect. Platform administrators can use this information to learn key concepts and decide when to use this type of connection.

Introduction

A Git repository connection is a Developer Connect feature that lets you create and maintain narrowly scoped connections to Git-based repositories on source code management systems outside of Google Cloud.

This type of connection is a system connection to a Git repository, which you can grant a service account permissions to use. Git repository connections are applicable in scenarios where a user who authorized the connection doesn't need to be present when the connection is invoked. For example, when a Git repository is connected to your Cloud Build configuration, triggering a build upon a commit to the repository doesn't require you to do anything at build time. With Git repository connections, you can configure bot services in accounts on those SCMs to handle routine tasks like cloning and indexing repositories.

For example, a Gemini Code Assist code customization user can set up a Git repository connection to a GitHub repository so that Gemini Code Assist can clone and index the connected repositories.

Use cases

The following table lists the products and use cases that Developer Connect supports, then the SCMs that you can integrate for each use case. The table also includes links to how-to guides showing you the steps to get started with each SCM.

Product Use case Supported SCMs
Gemini Code Assist code customization Get AI-powered coding assistance tailored to your connected repositories
  • GitHub
  • GitHub Enterprise Cloud
  • GitHub Enterprise
  • GitHub Enterprise in private networks
  • GitLab
  • GitLab Enterprise
  • GitLab Enterprise in private networks
  • Bitbucket Cloud
  • Bitbucket Data Center
  • Bitbucket Data Center in private networks
Firebase App Hosting Create a web app from your GitHub repositories GitHub

Benefits

Developer Connect guides you through authentication, authorization, and networking configuration. In many cases, connections to publicly hosted repositories can be created through prebuilt Google-managed processes and apps.

Developer Connect also lets you manage all of your SCM integrations in one place. You can create, view, and edit all of your repository connections from within Developer Connect.

Key concepts

Developer Connect handles integrations through connections and links.

  • Connection: the first step in creating a bridge between Google and a non-Google source code management platform.
  • Link: the association with an individual Git repository that you select within a connected source code management platform.

For example, after setting up a connection between Google and GitLab, you can configure links to multiple repositories within the connected GitLab account.

What's next