[](https://ssh.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https://source.developers.google.com/p/project_name/r/repo_name)
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Create private tutorials in Cloud Shell\n\nCloud Shell supports the creation of private tutorials, enabling you\nto design tutorials specifically for your audience.\n\nAfter you've authored tutorials using the\n[Writing tutorials in Cloud Shell](/shell/docs/cloud-shell-tutorials/tutorials) guide\nand followed the best practices detailed in the\n[Tutorial Style guide](/shell/docs/cloud-shell-tutorials/style-guide),\nyou can host your tutorial in a private Git repository to make it available to\nyour users.\n\nHost private tutorials\n----------------------\n\nTo make your tutorial private, you need a private Git repository to host it in.\nYou can use any Git repository hosting service you prefer. This guide uses\n[Cloud Source Repositories](/source-repositories); private Git repositories\nhosted on Google Cloud.\n| **Note:** To use Cloud Source Repositories, you must enable billing on your project. For details on the cost of using Cloud Source Repositories, see the Cloud Source Repositories [pricing guide](/source-repositories/docs/pricing).\n\nTo create a Cloud Source Repositories repository to host your private\ntutorial:\n\n1. Launch the Cloud Shell terminal. For a standalone Cloud Shell session, use [shell.cloud.google.com](https://shell.cloud.google.com).\n2. Create a private repository:\n\n gcloud source repos create \u003cvar label=\"repo_name\" translate=\"no\"\u003eREPO_NAME\u003c/var\u003e\n\n3. Clone your repository to Cloud Shell:\n\n gcloud source repos clone \u003cvar scope=\"REPO_NAME\" translate=\"no\"\u003eREPO_NAME\u003c/var\u003e\n\n4. Move your tutorial file to your locally created repository:\n\n mv \u003cvar class=\"readonly\" translate=\"no\"\u003ePATH/TO/TUTORIAL\u003c/var\u003e \u003cvar scope=\"REPO_NAME\" translate=\"no\"\u003eREPO_NAME\u003c/var\u003e/\u003cvar class=\"readonly\" translate=\"no\"\u003ePATH/TO/TUTORIAL\u003c/var\u003e\n\n5. Go to your local repository:\n\n cd \u003cvar scope=\"REPO_NAME\" translate=\"no\"\u003eREPO_NAME\u003c/var\u003e\n\n6. Add the tutorial to commit:\n\n git add .\n\n7. Commit the files to the repository with a comment describing the\n history of this action:\n\n git commit -m \"Add private tutorial to Cloud Source Repositories\"\n\n8. Using the `git push` command, add the contents of the local repository\n to Cloud Source Repositories:\n\n git push origin master\n\n9. View your repository and its contents in the Google Cloud console:\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n\nCreate an Open in Cloud Shell link\n----------------------------------\n\nTo help your users reach your tutorial, you can use the\nCloud Shell's Open in Cloud Shell feature that lets\nyou define how users access your tutorial. For details on how to customize your\nlink, see the [Open in Cloud Shell guide](../open-in-cloud-shell).\n\nFor a tutorial hosted in a\nCloud Source Repositories repository, you'll need\nto define the `cloudshell_git_repo` parameter with the URL of your repository.\n\nAn example of a link with `cloudshell_git_repo` defined: \n\n https://ssh.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https://source.developers.google.com/p/project_name/r/repo_name\n\nYou can style this link as a button to embed in your documentation for\nyour users to easily find: \n\n [](https://ssh.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https://source.developers.google.com/p/project_name/r/repo_name)\n\nCustomize tutorials with add-on tools\n-------------------------------------\n\nYou can further customize your private tutorial experience by providing your\nusers with custom tooling to work with your tutorial.\n\nTo do so, you can create a Docker image that functions as a custom\nCloud Shell environment with all the additional packages and custom\nconfigurations you want made available to your user."]]