Connecting a Hosted Repository

You can connect a Cloud Source Repository to a Git repository hosted on GitHub or Bitbucket. When you push changes to the hosted repository, the changes are automatically synchronized with the Cloud Source Repository.

Connecting a repository

To connect a Cloud Source Repository to a hosted repository:

  1. Open the source view in the Cloud Platform Console:

    Open the Source View in the Console

  2. Click Get Started.

  3. Select Automatically Mirror from GitHub or Bitbucket:

    Mirror from GitHub or Bitbucket

  4. Select your hosting service and click Connect.

  5. If you have not previously authorized access to the hosting service from Google Cloud Platform, read and consider the authentication request displayed in the authentication page that appears in your browser. Click Authorize Application if you consent to the request.

  6. Select a repository in the dialog box that is displayed. Select the Consent option if you consent to Google collecting and storing your authentication token.

    Choose repository

  7. Click Connect.

Disconnecting a repository

To disconnect a hosted repository:

  1. Click the Settings button View repository files in the source code browser.

  2. Click Disconnect.

After you have disconnected, the Cloud Source Repository is deleted.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Source Repositories