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

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:
主站蜘蛛池模板: 合川市| 乌兰察布市| 平顶山市| 乌拉特后旗| 清流县| 花垣县| 廉江市| 北碚区| 平南县| 兴和县| 天峻县| 南岸区| 固安县| 台南县| 鹤壁市| 和硕县| 中卫市| 雷州市| 五家渠市| 卫辉市| 黎平县| 定州市| 武隆县| 英吉沙县| 丹东市| 建水县| 石台县| 肇庆市| 融水| 赣州市| 新田县| 大关县| 铜川市| 台北市| 凌海市| 宁夏| 宣恩县| 循化| 津南区| 蕲春县| 邵阳县|