This page describes the steps required to enable or disable Cloud Source Repositories.
Enable the service
- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
-
Make sure that billing is enabled for your Google Cloud project.
- Install the Google Cloud CLI.
-
To initialize the gcloud CLI, run the following command:
gcloud init
- Verify that you have the latest version of Git.
- If you have not configured your user credentials in Git, follow the first time setup instructions.
- Enable the Cloud Source Repositories API in the
Google Cloud console
or with the following Google Cloud CLI command:
gcloud services enable sourcerepo.googleapis.com
Disable the service
Before you disable the Cloud Source Repositories API, ensure that all code that you want to keep is available in another location.
It's recommended that you delete repositories before you disable the API.
To disable Cloud Source Repositories, run the following command for your current project:
gcloud services disable sourcerepos.googleapis.com