- Google Cloud Platform Cookbook
- Legorie Rajan PS
- 136字
- 2021-08-27 19:13:23
Moving the code to Google Source Repositories
Each project on GCP has a Git repository which can be accessed by the GCE instances. Though we can manually move the code to an instance, moving it to Source Repositories gives the ability for the compute instances to pull the code automatically via a start up script:
- If you have made any changes to the code, you can commit the code to the local repository:
git commit -am "Ready to be committed to GCP"
- Create a new repository under the project:

- Follow the steps to upload the code from the local repository to Google Source Repositories. In the following example, the project ID is gcp-cookbook and the repository name is gcpcookbook:

- After the git push command is successful, you'll see the repository updated in the Source Repositories:

推薦閱讀
- 后稀缺:自動化與未來工作
- Div+CSS 3.0網(wǎng)頁布局案例精粹
- 面向STEM的mBlock智能機(jī)器人創(chuàng)新課程
- 80x86/Pentium微型計算機(jī)原理及應(yīng)用
- 21天學(xué)通Java
- 大數(shù)據(jù)處理平臺
- 塊數(shù)據(jù)5.0:數(shù)據(jù)社會學(xué)的理論與方法
- Salesforce for Beginners
- 空間機(jī)械臂建模、規(guī)劃與控制
- 單片機(jī)技能與實(shí)訓(xùn)
- INSTANT Puppet 3 Starter
- Excel 2007終極技巧金典
- PowerMill 2020五軸數(shù)控加工編程應(yīng)用實(shí)例
- Deep Learning Essentials
- 樂高創(chuàng)意機(jī)器人教程(中級 上冊 10~16歲) (青少年iCAN+創(chuàng)新創(chuàng)意實(shí)踐指導(dǎo)叢書)