官术网_书友最值得收藏!

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:

  1. 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"
  1. Create a new repository under the project:
  1. 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:
  1. After the git push command is successful, you'll see the repository updated in the Source Repositories:
主站蜘蛛池模板: 馆陶县| 徐闻县| 临湘市| 林西县| 寿光市| 开远市| 丰台区| 九寨沟县| 南华县| 石林| 黄平县| 乐陵市| 佛学| 兴安县| 桦南县| 万州区| 乐清市| 凭祥市| 九台市| 会泽县| 海阳市| 乌拉特后旗| 巴林左旗| 金堂县| 琼结县| 三都| 北安市| 芜湖县| 永川市| 拜泉县| 鹰潭市| 玛曲县| 杭锦旗| 葫芦岛市| 长治县| 遵化市| 滦平县| 宁都县| 斗六市| 天峻县| 酒泉市|