Utilizzare Cloud Source Repositories in Cloud Code for IntelliJ
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Tramite Cloud Code, puoi aggiungere nuovi progetti a
Cloud Source Repositories ed estrarre
progetti esistenti.
Prima di iniziare
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.
Carica il codice in Cloud Source Repositories da Cloud Code:
Apri il progetto che vuoi aggiungere a Cloud Source Repositories.
Fai clic su VCS > Carica su Cloud Source Repositories. In alternativa, nel menu vai a Strumenti>Google Cloud Code>Carica in Cloud Source Repositories.
Nella finestra di dialogo, utilizza il menu a discesa per selezionare il progetto Cloud
associato al tuo progetto.
Utilizza il menu a discesa per selezionare il repository cloud.
Se non hai un repository o vuoi crearne uno nuovo, fai clic su
Crea un nuovo repository cloud.
Cloud Code apre una nuova finestra del browser nella console
Google Cloud in modo che tu possa creare il nuovo repository.
Per impostazione predefinita, Cloud Code imposta il Nome remoto. Puoi inserire
un nome diverso nel campo Nuovo nome remoto.
Fai clic su Carica.
Sviluppo
Per altre operazioni, come il commit e il push di nuove modifiche, vai a
VCS>VCS Operations Popup.
Sfoglia i file di origine
Dopo aver caricato il codice sorgente, sfoglia il codice nella console Google Cloud :
Nella Google Cloud console, seleziona il progetto che
contiene il codice sorgente.
Nella barra di ricerca, cerca Cloud Source Repositories.
Controllare il codice sorgente
Estrai il codice sorgente da Cloud Source Repositories:
Scegli VCS > Get from Version Control (VCS > Ottieni dal controllo delle versioni). In alternativa, vai alla finestra di dialogo di benvenuto e fai clic su Ottieni da VSC.
Seleziona Google Cloud dal menu a discesa Controllo della versione e fai clic su Clona.
Nella finestra di dialogo Clona da Google Cloud, seleziona il progetto Cloud
associato al tuo progetto.
Seleziona il tuo repository Cloud.
Seleziona la directory dei genitori.
Inserisci il Nome directory.
Fai clic su Clona.
In alternativa, puoi eseguire il check-out dalla schermata Benvenuto selezionando
Ottieni dal controllo della versione e scegliendo Google Cloud dal menu a discesa
Controllo della versione. Viene visualizzata la finestra di dialogo Clona da Google Cloud.
Assistenza
Per inviare un feedback o segnalare un problema nel tuo IDE IntelliJ, vai a
Strumenti > Cloud Code > Guida / Informazioni > Invia
feedback o segnala un problema per segnalare un problema su GitHub.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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)."]]