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

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:
主站蜘蛛池模板: 通渭县| 顺平县| 长宁县| 潮安县| 石台县| 石景山区| 新营市| 安宁市| 抚宁县| 西华县| 吉水县| 正安县| 墨江| 泰宁县| 工布江达县| 龙门县| 宜宾市| 游戏| 白山市| 胶州市| 北宁市| 开封县| 新余市| 大姚县| 尉犁县| 南华县| 安泽县| 当涂县| 河北省| 乌鲁木齐市| 镇安县| 安仁县| 南靖县| 炉霍县| 平原县| 博乐市| 德惠市| 银川市| 图木舒克市| 防城港市| 宁津县|