Saturday, April 6, 2024
GCP Juara GCP

Cloud Source Repositories: Qwik Start

source

“Cloud Source Repositories: Qwik Start”

Pengantar

Repositori Sumber Google Cloud menyediakan kontrol versi Git untuk mendukung pengembangan kolaboratif aplikasi atau layanan apa pun. Di lab ini, Anda akan membuat repositori Git lokal yang berisi file contoh, menambahkan Google Source Repository sebagai remote, dan mendorong konten repositori lokal. Anda akan menggunakan browser sumber yang disertakan dalam Repositori Sumber untuk melihat file repositori Anda dari dalam Cloud Console.

Praktikum

Task 1. Create a new repository

gcloud source repos create REPO_DEMO

Task 2. Clone the new repository into your Cloud Shell session

gcloud source repos clone REPO_DEMO

Task 3. Push to the Cloud Source Repository

  • masuk ke repo
cd REPO_DEMO
echo 'Hello World!' > myfile.txt
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
git add myfile.txt
git commit -m "First file using Cloud Source Repositories" myfile.txt
git push origin master

Task 4. Browse files in the Google Cloud Source Repository

gcloud source repos list

Task 5. View a file in the Google Cloud repository

  • Click REPO_DEMO > myfile.txt to view the file’s contents in the source code browser.

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Cloud Source Repositories: Qwik Start. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

(Visited 101 times, 1 visits today)

Similar Posts