Cloud Source Repositories in Cloud Code for IntelliJ verwenden
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Mit Cloud Code können Sie neue Projekte zu Cloud Source Repositories hinzufügen und bestehende Projekte auschecken.
Hinweise
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.
So laden Sie Ihren Code aus Cloud Code in Cloud Source Repositories hoch:
Öffnen Sie das Projekt, das Sie Cloud Source Repositories hinzufügen möchten.
Klicken Sie auf VCS > Upload to Cloud Source Repositories. Alternativ können Sie im Menü zu Tools>Google Cloud Code>Upload to Cloud Source Repositories (In Cloud Source Repositories hochladen) navigieren.
Wählen Sie im Dialogfeld das mit Ihrem Projekt verknüpfte Cloud-Projekt aus dem Drop-down-Menü aus.
Wählen Sie Ihr Cloud Repository aus dem Drop-down-Menü aus.
Wenn Sie kein Repository haben oder ein neues Repository erstellen möchten, klicken Sie auf Create a new cloud repository.
Cloud Code öffnet ein neues Browserfenster für dieGoogle Cloud -Konsole, in dem Sie das neue Repository erstellen können.
Standardmäßig wird der Name unter Remote Name von Cloud Code festgelegt. Sie können im Feld New Remote Name einen anderen Namen eingeben.
Klicken Sie auf Hochladen.
Entwicklung
Für andere Vorgänge wie das Committen und Pushen neuer Änderungen rufen Sie das VCS Operations Popup über VCS> auf.
Quelldateien durchsuchen
Nachdem Sie Ihren Quellcode hochgeladen haben, suchen Sie den Code in der Google Cloud Konsole:
Wählen Sie in der Google Cloud Console das Projekt aus, das Ihren Quellcode enthält.
Suchen Sie in der Suchleiste nach Cloud Source Repositories.
Quellcode auschecken
Checken Sie Quellcode aus Cloud Source Repositories aus:
Wählen Sie VCS > Get from Version Control aus. Alternativ können Sie das Begrüßungsdialogfeld aufrufen und auf Get from VSC (Aus VSC abrufen) klicken.
Wählen Sie im Drop-down-Menü Versionsverwaltung die Option Google Cloud aus und klicken Sie auf Klonen.
Wählen Sie im Dialogfeld Aus Google Cloud klonen das mit Ihrem Projekt verknüpfte Cloudprojekt aus.
Wählen Sie Ihr Cloud Repository aus.
Wählen Sie das übergeordnete Verzeichnis aus.
Geben Sie den Verzeichnisnamen ein.
Klicken Sie auf Klonen.
Alternativ können Sie über den Begrüßungsbildschirm auschecken. Klicken Sie dafür auf Get from Version Control und wählen Sie Google Cloud im Drop-down-Menü „Version Control“ aus. Dadurch wird das Dialogfeld Clone from Google Cloud angezeigt.
Support anfordern
So senden Sie Feedback oder melden ein Problem in Ihrer IntelliJ-IDE: Tools > Cloud Code > Hilfe / Info > Feedback geben oder Problem melden, um ein Problem auf GitHub zu melden.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-05 (UTC)."],[[["\u003cp\u003eCloud Code allows you to upload existing projects to Cloud Source Repositories directly from your IDE.\u003c/p\u003e\n"],["\u003cp\u003eYou can create a new Cloud Repository if one doesn't exist during the upload process.\u003c/p\u003e\n"],["\u003cp\u003eAfter uploading, you can browse your source code in the Google Cloud console by searching for \u003ccode\u003eCloud Source Repositories\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code enables you to check out source code from Cloud Source Repositories via the "Get from Version Control" option, either in the VCS menu or the welcome screen.\u003c/p\u003e\n"],["\u003cp\u003eFor feedback or issues, you can use the "Submit feedback or report an issue" option in the IDE's Cloud Code menu to report directly to GitHub.\u003c/p\u003e\n"]]],[],null,["# Use Cloud Source Repositories in Cloud Code for IntelliJ\n\nThrough Cloud Code, you can add new projects to\n[Cloud Source Repositories](/tools/cloud-repositories/docs) and check out\nexisting projects.\n| **Note:** The following IDEs support this feature:\n|\n| - IntelliJ IDEA - Ultimate\n| - IntelliJ IDEA - Community\n| - [Other IntelliJ Platform-based IDEs](/code/docs/intellij/ides)\n\nBefore you begin\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\nUpload source code\n------------------\n\nUpload your code to Cloud Source Repositories from Cloud Code:\n\n1. Open the project you want to add to Cloud Source Repositories.\n\n2. Click **VCS** \\\u003e **Upload to Cloud Source Repositories** . Alternatively, in\n the menu, navigate to **Tools** \\\u003e **Google Cloud Code** \\\u003e\n **Upload to Cloud Source Repositories**.\n\n3. In the dialog, use the drop down menu to select the **Cloud Project**\n associated with your project.\n\n4. Use the drop down menu to select your **Cloud Repository**.\n\n 1. If you don't have a repository, or if you want to create a new one, click\n **Create a new cloud repository**.\n\n Cloud Code opens a new browser window to the\n Google Cloud console so that you can create the new repository.\n5. By default, Cloud Code sets the **Remote Name** . You can enter\n a different name in the **New Remote Name** field.\n\n6. Click **Upload**.\n\nDevelopment\n-----------\n\nFor other operations such as committing and pushing new changes, navigate to\n**VCS** \\\u003e **VCS Operations Popup**.\n\nBrowse source files\n-------------------\n\nAfter uploading your source code, browse the code in the Google Cloud console:\n\n1. In the [Google Cloud console](https://console.cloud.google.com/), select the project that\n contains your source code.\n\n2. In the search bar, search for `Cloud Source Repositories`.\n\nCheck out source code\n---------------------\n\nCheck out source code from Cloud Source Repositories:\n\n1. Choose **VCS \\\u003e Get from Version Control** . Alternatively, go to the welcome dialog and click **Get from VSC**.\n2. Select **Google Cloud** from the **Version Control** drop-down and click **Clone**.\n3. In the **Clone from Google Cloud** dialog, select the **Cloud Project** associated with your project.\n4. Select your **Cloud Repository**.\n5. Select the **Parent Directory**.\n6. Enter the **Directory Name**.\n7. Click **Clone**.\n\nYou can alternatively check out from the **Welcome** screen by selecting\n**Get from Version Control** and choosing **Google Cloud** from the\nVersion Control drop-down. This displays the **Clone from Google Cloud** dialog.\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]