启用和停用服务

本页介绍了启用或停用 Cloud Source Repositories 所需的步骤。

启用服务

  1. 使用以下 Google Cloud CLI 命令启用 Cloud Source Repositories API:
    gcloud services enable sourcerepo.googleapis.com

停用服务

  1. 在停用 Cloud Source Repositories API 之前,请确保要保留的所有代码在其他位置提供。

  2. 建议您在停用 API 之前先删除代码库

  3. 如需停用 Cloud Source Repositories,请针对当前项目运行以下命令:

    gcloud services disable sourcerepos.googleapis.com