Using Cloud Source Repositories

Through IntelliJ IDEA, you can add new projects to Cloud Source Repositories and check out existing projects.

Before you begin

  1. Sign in to your Google account.

    If you don't already have one, sign up for a new account.

  2. Select or create a Cloud Platform project.

    Go to the Projects page

  3. Enable billing for your project.

    Enable billing

Uploading source code

Upload your code to Cloud Source Repositories from IntelliJ IDEA as follows:

  1. In IntelliJ IDEA, open the project you want to add to Cloud Source Repositories.
  2. Choose VCS > Import into Version Control > Setup on Google Cloud Source Repositories.
  3. Screenshot showing the navigation to the
Setup on Google Cloud Source Repositories menu option.
  4. In the dialog, use the drop down menu to select the Cloud Project associated with your project.
  5. Use the drop down menu to select your Cloud Repository.
    1. If you do not have a repository, or if you want to create a new one, click Create a new cloud repository.
    2. IntelliJ IDEA will open a new browser window to the Google Cloud Platform Console so that you can create the new repository.
    3. Screenshot showing the fields to complete to
upload code to the Google Cloud Source Repositories.
  6. By default, IntelliJ IDEA sets the Remote Name. You can enter a different name in the New Remote Name field.

  7. Click Upload.

Browsing the source files

After uploading your source code, browse the code in the Google Cloud Platform Console as follows:

  1. In the Google Cloud Platform Console, select the project that contains your source code.
  2. In the left navigation bar, find the Tools section.
  3. Select Development > Source Code.
  4. Screenshot showing the navigation to the
Source Code menu option.

Checking out the source code

Check out source code from Cloud Source Repositories as follows:

  1. Choose VCS > Checkout from Version Control > Google Cloud.

  2. Screenshot showing the navigation to the
Source Code checkout menu option.
  3. In the Clone from Google Cloud dialog, select the Cloud Project associated with your project.
  4. Screenshot showing the dialog to checkout
source code.
  5. Select your Cloud Repository.
  6. Select the Parent Directory.
  7. Enter the Directory Name.
  8. Click Clone.

You can alternatively check out from the Welcome screen by selecting Check out from Version Control > Google Cloud to display the Clone from Google Cloud dialog.

Send feedback about...

Cloud Tools for IntelliJ