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

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:
主站蜘蛛池模板: 津市市| 辉南县| 曲阳县| 延津县| 法库县| 达尔| 万州区| 红安县| 玉环县| 罗城| 石门县| 二连浩特市| 石狮市| 辽阳市| 福清市| 曲松县| 垫江县| 海盐县| 札达县| 措美县| 井陉县| 凤凰县| 贵德县| 苍山县| 西乡县| 枞阳县| 上思县| 腾冲县| 五台县| 建德市| 柳江县| 梅州市| 边坝县| 吴旗县| 和龙市| 阜南县| 奉化市| 汽车| 长子县| 牟定县| 黄冈市|