Stay organized with collections Save and categorize content based on your preferences.
A sample repository is a Git repository that contains custom samples you can use to develop applications. After you've set up your sample repository (or one has been set up for you), you can start creating applications with these samples.
Alternatively, you can import the Cloud Code custom sample sample repository to try the custom sample experience. To better understand how custom sample repositories are set up, it is recommended that you try forking the repository and modifying its structure and content before importing it. You can do this by creating new samples in the repository or modifying the source code to create your own versions of the Hello World or Kubernetes Custom Sample apps.
Before you beginMake sure that Git version 2.25.0 or later is installed on your local machine.
To follow step-by-step guidance for this task directly in the Cloud Shell Editor, click Guide me:
Creating your app from an imported sampleTo create a new application using a sample from your sample repository:
Copy the Git URL of the sample repository that you'd like to use. If you're using a Git repository hosted live on your local machine, the .git
suffix is omitted and the URL is of the form /path/to/repo
.
In the Cloud Code status bar, click the active project name.
In the Quick Pick menu that appears, select New Application.
When you're prompted for the type of sample to use, select Custom application.
Click Import Sample from Repo.
When you're prompted for the URL, enter the Git URL you copied earlier.
The URL in this example uses the HTTPS GitHub format: https://github.com/username/repo-name.git
.
Troubleshooting tip: If you're having trouble with Git authentication, check to see that VS Code's built-in Git extension is enabled (search for @builtin git
) and that the Git: Terminal Authentication
setting in your User settings is checked.
To use the latest version of your samples in Cloud Code, click refresh Refresh Templates.
Check the terminal window in your IDE to confirm that your repository has been cloned successfully.
The repository's default branch is automatically used. To use another branch:
settings.json
file under cloudcode.customApplications
.If your repository wasn't cloned successfully, you can use the Manage Repositories option to update your sample repository details with a valid Git URL and/or branch.
From the updated list of samples, select your custom sample.
Enter your project name and location.
Click Create New Application.
Cloud Code creates your app using your chosen sample and opens your app for use.
To send feedback, report issues on
GitHub, or ask a question on
Stack Overflow.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["A sample repository in Git contains custom samples for developing applications, and can be set up or imported for use."],["You can try the custom sample experience by importing the Cloud Code custom sample repository, and it's recommended to fork and modify it to understand its setup."],["To create a new application from a sample repository, you need the Git URL of the repository, which should preferably be an HTTPS URL."],["After entering the Git URL into the application, you can refresh the templates, confirm the cloning in the terminal, and then select the custom sample to use."],["The steps are provided to guide you on how to address issues with Git authentication, how to use different branches, and where you can find support or submit feedback."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4