- 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:

推薦閱讀
- 工業機器人虛擬仿真實例教程:KUKA.Sim Pro(全彩版)
- 我的J2EE成功之路
- PowerShell 3.0 Advanced Administration Handbook
- 輕松學Java Web開發
- 模型制作
- Apache Spark Deep Learning Cookbook
- 大數據處理平臺
- Pig Design Patterns
- Implementing Oracle API Platform Cloud Service
- 愛犯錯的智能體
- Hands-On Deep Learning with Go
- ARM嵌入式開發實例
- Internet of Things with Raspberry Pi 3
- 商務智能
- R:Predictive Analysis