Mulai 17 Juni 2024, Cloud Source Repositories tidak tersedia untuk pelanggan baru. Jika organisasi Anda belum pernah menggunakan Cloud Source Repositories, Anda tidak dapat mengaktifkan API atau menggunakan Cloud Source Repositories. Project baru yang tidak terhubung ke organisasi tidak dapat mengaktifkan Cloud Source Repositories API. Organisasi yang telah menggunakan Repositori Sumber Cloud sebelum 17 Juni 2024 tidak akan terpengaruh oleh perubahan ini.
Halaman akan terbuka, menampilkan konten repositori.
Klik Edit kode.
Tab browser baru akan terbuka, yang berisi lingkungan Cloud Shell. Anda juga diminta untuk mengonfirmasi apakah ingin meng-clone repositori ke Cloud Shell.
Klik Lanjutkan.
Lingkungan Cloud Shell akan terbuka, yang berisi clone repositori Anda.
Secara default, lokasi repositori adalah ~/[repository name]. Contoh,
~/hello-world.
Membuka repositori yang ada dengan Cloud Shell
Jika Anda telah meng-clone repositori ke lingkungan Cloud Shell,
ikuti langkah-langkah di bagian sebelumnya. Saat lingkungan Cloud Shell
sudah siap, Anda akan diminta untuk memilih dari salah satu opsi berikut:
Buka direktori tersebut. Untuk mengubah direktori secara otomatis ke direktori
yang berisi repositori Anda, pilih opsi ini. Misalnya, ~/hello-world.
Buka direktori tersebut dan jalankan git pull. Untuk mengubah direktori secara otomatis ke direktori yang berisi repositori Anda dan mengambil versi terbaru repositori ke lingkungan Cloud Shell, pilih opsi ini.
Clone salinan baru menggunakan perintah git clone. Untuk membuat folder baru yang berisi repositori di lingkungan Cloud Shell, pilih opsi ini. Folder baru memiliki nama yang sama dengan repositori, dengan
angka yang ditambahkan. Misalnya, salinan kedua repositori,
hello-world, memiliki nama ~/hello-world-2.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-09-11 UTC."],[],[],null,["# Browsing files in Cloud Shell\n\nThis topic describes how to browse files by using Cloud Shell.\n\nOpen a repository in Cloud Shell for the first time\n---------------------------------------------------\n\n1. In the Google Cloud console, open Cloud Source Repositories.\n\n [Open Cloud Source Repositories](https://source.cloud.google.com/repos)\n2. Click the name of a repository.\n\n A page opens, displaying the contents of the repository.\n3. Click **Edit code**.\n\n A new browser tab opens, containing the Cloud Shell environment. You're\n also prompted to confirm whether you want to clone the repository into your\n Cloud Shell.\n4. Click **Proceed**.\n\n A Cloud Shell environment opens, containing a clone of your repository.\n By default, the location of the repository is `~/[repository name]`. For\n example, `~/hello-world`.\n\nOpen an existing repository with Cloud Shell\n--------------------------------------------\n\nIf you have already cloned a repository into a Cloud Shell environment,\nfollow the steps in the preceding section. When the Cloud Shell environment\nis ready, you're prompted to select from one of the following options:\n\n- Navigate into that directory. To automatically change directories to the one containing your repository, choose this option. For example, `~/hello-world`.\n- Navigate into that directory and run `git pull`. To automatically change directories to the one containing your repository and pull the latest version of the repository to the Cloud Shell environment, choose this option.\n- Clone a new copy by using the `git clone` command. To create a new folder containing the repository in the Cloud Shell environment, choose this option. The new folder has the same name as the repository, with a number appended to it. For example, a second copy of the repository, `hello-world`, has the name `~/hello-world-2`."]]