Cloud Source Repositories provides fully featured, private
[Git](https://git-scm.com)
repositories hosted on
[Google Cloud](https://docs.cloud.google.com/).

You can use Cloud Source Repositories for collaborative, version-controlled
development of any app or service, including those that run on
[App Engine](https://docs.cloud.google.com/appengine/docs.md.txt)
and
[Compute Engine](https://docs.cloud.google.com/compute/docs.md.txt).

If you're familiar with Git, you can get started quickly with
Cloud Source Repositories. For example, you can add Cloud Source Repositories to a
local Git repository as a remote, or you can connect it to a hosted repository
on GitHub or Bitbucket. From a local repository, you can use the standard set of
Git commands to interact with the repository in the cloud, including `push`,
`pull`, `clone`, and `log`.

> [!CAUTION]
> **Caution**
> Cloud Source Repositories are intended to store only the source code for your app and not user or personal data. Don't store any Core App Engine Customer Data (as defined in your [License Agreement](https://docs.cloud.google.com/terms/service-terms#26-definitions)) in Cloud Source Repositories.

## Multiple repositories

You can
[create multiple repositories](https://docs.cloud.google.com/source-repositories/docs/setting-up-repositories)
for a single Google Cloud project, allowing you to organize the code
associated with your cloud project in whatever way works best for you.

## Connected repositories

You can connect an existing
[GitHub](https://github.com)
or
[Bitbucket](https://bitbucket.org/)
repository to Cloud Source Repositories. Connected repositories are synchronized
with Cloud Source Repositories automatically.

## Editor support

Because repositories in Cloud Source Repositories are Git repositories, you can
continue to use the editor of your choice to work on your code. For a more
integrated experience, see
[Cloud Code for IntelliJ](https://docs.cloud.google.com/code/docs/intellij/vcs.md.txt)

## Source browser

Cloud Source Repositories also provide a
[source browser](https://docs.cloud.google.com/source-repositories/docs/using-source-browser)
that you can use to view repository files from within the
Google Cloud console.

![Source browser](https://docs.cloud.google.com/static/source-repositories/docs/images/view-repository-file.png)

## Automatic logging

Cloud Source Repositories automatically send logs on repository activity to
Cloud Logging to help track and troubleshoot data access.

You can use these logs to review recent repository synchronization, repository
access by other users, and administrative actions such as creations, deletions,
and permission changes. Moreover, you can configure notification settings such
that an alert is sent to you when an error is logged during a repository
synchronization.

For more information regarding reading and writing log entries in
Logging, see this
[quickstart](https://docs.cloud.google.com/logging/docs/write-query-log-entries-gcloud.md.txt).
For information about possible billing configurations to manage storage of your
logs, see
[Logging pricing](https://cloud.google.com/stackdriver/pricing_v2).

## Security key detection

Cloud Source Repositories offer security key detection to block `git push`
transactions that contain sensitive information. This feature is designed to
improve the security of your source code. Enabling it is a best practice. For
more information, see
[Detecting security keys](https://docs.cloud.google.com/source-repositories/docs/detecting-security-keys.md.txt).

## User data

> [!CAUTION]
> **Caution**
> Cloud Source Repositories are intended to store only the source code for your app and not user or personal data. Don't store any Core App Engine Customer Data (as defined in your [License Agreement](https://docs.cloud.google.com/terms/service-terms#26-definitions)) in Cloud Source Repositories.

## What's next

- [Learn how to set up a repository.](https://docs.cloud.google.com/source-repositories/docs/setting-up-repositories)
- [Learn how to add a repository as a remote.](https://docs.cloud.google.com/source-repositories/docs/adding-repositories-as-remotes.md.txt)
- [Learn how to connect a repository hosted on GitHub or Bitbucket.](https://docs.cloud.google.com/source-repositories/docs/connecting-hosted-repositories)
- [Learn how to use the source browser.](https://docs.cloud.google.com/source-repositories/docs/using-source-browser)