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

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:
主站蜘蛛池模板: 肃宁县| 襄城县| 原阳县| 临朐县| 兰坪| 宾川县| 德惠市| 芜湖县| 克什克腾旗| 嘉黎县| 靖江市| 黎平县| 大冶市| 筠连县| 绍兴市| 新津县| 宜宾县| 临颍县| 湖北省| 五家渠市| 井陉县| 云梦县| 庆安县| 阿图什市| 临潭县| 锡林浩特市| 若尔盖县| 龙井市| 共和县| 昌乐县| 理塘县| 城固县| 阿坝县| 漳州市| 建瓯市| 积石山| 文山县| 永康市| 盐津县| 合肥市| 泾阳县|