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

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:
主站蜘蛛池模板: 东平县| 汉川市| 葫芦岛市| 西宁市| 荥经县| 万宁市| 澎湖县| 乌苏市| 万宁市| 五原县| 上思县| 阜新市| 渝北区| 金湖县| 永昌县| 睢宁县| 新河县| 天门市| 广平县| 海林市| 通城县| 兰坪| 阳城县| 景谷| 皋兰县| 铜梁县| 新乡县| 高要市| 湖南省| 宜城市| 章丘市| 白山市| 定兴县| 仁寿县| 东明县| 丹东市| 永吉县| 宕昌县| 商河县| 安龙县| 连云港市|