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

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:
主站蜘蛛池模板: 肃北| 正镶白旗| 安岳县| 定兴县| 镇雄县| 浠水县| 满洲里市| 加查县| 土默特右旗| 嘉义县| 襄城县| 麟游县| 永济市| 卢湾区| 广水市| 宁明县| 西充县| 三明市| 山东省| 昭平县| 大名县| 环江| 两当县| 双鸭山市| 平和县| 缙云县| 海盐县| 柳河县| 沁源县| 湖州市| 财经| 武鸣县| 西乌| 南阳市| 文化| 安丘市| 蛟河市| 通渭县| 界首市| 岑巩县| 怀远县|