{"id":1078,"date":"2022-10-14T12:31:14","date_gmt":"2022-10-14T04:31:14","guid":{"rendered":"http:\/\/yushuoxin.xyz\/?p=1078"},"modified":"2022-10-14T12:36:04","modified_gmt":"2022-10-14T04:36:04","slug":"aws-lab-codecommit","status":"publish","type":"post","link":"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/","title":{"rendered":"AWS CodeCommit \u5b9e\u9a8c"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_72 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E5%88%9B%E5%BB%BACodeCommit%E5%82%A8%E5%AD%98%E5%BA%93\" title=\"\u521b\u5efaCodeCommit\u50a8\u5b58\u5e93\">\u521b\u5efaCodeCommit\u50a8\u5b58\u5e93<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E5%9C%A8EC2%E4%B8%AD%E4%BD%BF%E7%94%A8Git%E5%88%9B%E5%BB%BA%E6%9C%AC%E5%9C%B0%E5%82%A8%E5%AD%98%E5%BA%93\" title=\"\u5728EC2\u4e2d\u4f7f\u7528Git\u521b\u5efa\u672c\u5730\u50a8\u5b58\u5e93\">\u5728EC2\u4e2d\u4f7f\u7528Git\u521b\u5efa\u672c\u5730\u50a8\u5b58\u5e93<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E5%AE%89%E8%A3%85git%E5%AE%A2%E6%88%B7%E7%AB%AF\" title=\"\u5b89\u88c5git\u5ba2\u6237\u7aef\">\u5b89\u88c5git\u5ba2\u6237\u7aef<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E9%85%8D%E7%BD%AEgit\" title=\"\u914d\u7f6egit\">\u914d\u7f6egit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E8%8E%B7%E5%8F%96_Amazon_CodeCommit_%E5%AD%98%E5%82%A8%E5%BA%93%E7%9A%84_HTTPS_URL\" title=\"\u83b7\u53d6 Amazon CodeCommit \u5b58\u50a8\u5e93\u7684 HTTPS URL\">\u83b7\u53d6 Amazon CodeCommit \u5b58\u50a8\u5e93\u7684 HTTPS URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E8%AE%A9EC2%E8%BF%9E%E6%8E%A5%E5%88%B0CodeCommit%E5%AD%98%E5%82%A8%E5%BA%93\" title=\"\u8ba9EC2\u8fde\u63a5\u5230CodeCommit\u5b58\u50a8\u5e93\">\u8ba9EC2\u8fde\u63a5\u5230CodeCommit\u5b58\u50a8\u5e93<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E8%BF%9B%E8%A1%8C%E4%BB%A3%E7%A0%81%E6%9B%B4%E6%94%B9%E5%92%8C%E9%A6%96%E6%AC%A1%E6%8F%90%E4%BA%A4%E5%88%B0%E5%AD%98%E5%82%A8%E5%BA%93\" title=\"\u8fdb\u884c\u4ee3\u7801\u66f4\u6539\u548c\u9996\u6b21\u63d0\u4ea4\u5230\u5b58\u50a8\u5e93\">\u8fdb\u884c\u4ee3\u7801\u66f4\u6539\u548c\u9996\u6b21\u63d0\u4ea4\u5230\u5b58\u50a8\u5e93<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E5%9C%A8%E6%9C%AC%E5%9C%B0%E5%AD%98%E5%82%A8%E5%BA%93%E4%B8%AD%E5%88%9B%E5%BB%BA%E4%B8%A4%E4%B8%AA%E6%96%87%E4%BB%B6\" title=\"\u5728\u672c\u5730\u5b58\u50a8\u5e93\u4e2d\u521b\u5efa\u4e24\u4e2a\u6587\u4ef6\">\u5728\u672c\u5730\u5b58\u50a8\u5e93\u4e2d\u521b\u5efa\u4e24\u4e2a\u6587\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E5%B0%86%E6%9B%B4%E6%94%B9%E6%9A%82%E5%AD%98%E5%88%B0%E6%9C%AC%E5%9C%B0%E5%AD%98%E5%82%A8%E5%BA%93\" title=\"\u5c06\u66f4\u6539\u6682\u5b58\u5230\u672c\u5730\u5b58\u50a8\u5e93\">\u5c06\u66f4\u6539\u6682\u5b58\u5230\u672c\u5730\u5b58\u50a8\u5e93<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E6%8F%90%E4%BA%A4%E6%9C%AC%E5%9C%B0%E5%82%A8%E5%AD%98%E5%BA%93\" title=\"\u63d0\u4ea4\u672c\u5730\u50a8\u5b58\u5e93\">\u63d0\u4ea4\u672c\u5730\u50a8\u5b58\u5e93<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E6%8E%A8%E9%80%81%E6%8F%90%E4%BA%A4%E5%88%B0CodeCommit\" title=\"\u63a8\u9001\u63d0\u4ea4\u5230CodeCommit\">\u63a8\u9001\u63d0\u4ea4\u5230CodeCommit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/yushuoxin.top\/index.php\/2022\/10\/14\/aws-lab-codecommit\/#%E6%89%A9%E5%B1%95\" title=\"\u6269\u5c55\">\u6269\u5c55<\/a><\/li><\/ul><\/nav><\/div>\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%88%9B%E5%BB%BACodeCommit%E5%82%A8%E5%AD%98%E5%BA%93\"><\/span>\u521b\u5efaCodeCommit\u50a8\u5b58\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"446\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-1024x446.png\" alt=\"\" class=\"wp-image-1079\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-1024x446.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-300x131.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-768x335.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image.png 1209w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"873\" height=\"749\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-1.png\" alt=\"\" class=\"wp-image-1080\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-1.png 873w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-1-300x257.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-1-768x659.png 768w\" sizes=\"auto, (max-width: 873px) 100vw, 873px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"985\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-2-1024x985.png\" alt=\"\" class=\"wp-image-1081\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-2-1024x985.png 1024w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-2-300x289.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-2-768x739.png 768w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-2.png 1280w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9C%A8EC2%E4%B8%AD%E4%BD%BF%E7%94%A8Git%E5%88%9B%E5%BB%BA%E6%9C%AC%E5%9C%B0%E5%82%A8%E5%AD%98%E5%BA%93\"><\/span>\u5728EC2\u4e2d\u4f7f\u7528Git\u521b\u5efa\u672c\u5730\u50a8\u5b58\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AE%89%E8%A3%85git%E5%AE%A2%E6%88%B7%E7%AB%AF\"><\/span>\u5b89\u88c5git\u5ba2\u6237\u7aef<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y git\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E9%85%8D%E7%BD%AEgit\"><\/span>\u914d\u7f6egit<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4fbf\u5c06 Git \u51ed\u8bc1\u8f85\u52a9\u7a0b\u5e8f\u4e0e\u4e9a\u9a6c\u900a\u4e91\u79d1\u6280\u51ed\u8bc1\u914d\u7f6e\u6587\u4ef6\u4e00\u8d77\u4f7f\u7528\uff0c\u5e76\u8ba9 Git \u51ed\u8bc1\u8f85\u52a9\u7a0b\u5e8f\u53d1\u9001\u5b58\u50a8\u5e93\u7684\u8def\u5f84\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git config --global credential.helper '!aws codecommit credential-helper $@'\ngit config --global credential.UseHttpPath true\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%8E%B7%E5%8F%96_Amazon_CodeCommit_%E5%AD%98%E5%82%A8%E5%BA%93%E7%9A%84_HTTPS_URL\"><\/span>\u83b7\u53d6 Amazon CodeCommit \u5b58\u50a8\u5e93\u7684 HTTPS URL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"517\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-3.png\" alt=\"\" class=\"wp-image-1083\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-3.png 941w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-3-300x165.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-3-768x422.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/figure>\n\n\n\n<p>\u5f97\u5230\u94fe\u63a5\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>https:\/\/git-codecommit.us-east-1.amazonaws.com\/v1\/repos\/My-Repo<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%A9EC2%E8%BF%9E%E6%8E%A5%E5%88%B0CodeCommit%E5%AD%98%E5%82%A8%E5%BA%93\"><\/span>\u8ba9EC2\u8fde\u63a5\u5230CodeCommit\u5b58\u50a8\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u7136\u540e\u5728EC2\u4e2d\uff0c\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/git-codecommit.us-east-1.amazonaws.com\/v1\/repos\/My-Repo<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"76\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-4.png\" alt=\"\" class=\"wp-image-1085\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-4.png 944w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-4-300x24.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-4-768x62.png 768w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><\/figure>\n\n\n\n<p>\u6b64\u65f6\u5df2\u6210\u529f\u8fde\u63a5\u5230 Amazon CodeCommit \u5b58\u50a8\u5e93\u5e76\u4e0e\u4e4b\u540c\u6b65\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%BF%9B%E8%A1%8C%E4%BB%A3%E7%A0%81%E6%9B%B4%E6%94%B9%E5%92%8C%E9%A6%96%E6%AC%A1%E6%8F%90%E4%BA%A4%E5%88%B0%E5%AD%98%E5%82%A8%E5%BA%93\"><\/span>\u8fdb\u884c\u4ee3\u7801\u66f4\u6539\u548c\u9996\u6b21\u63d0\u4ea4\u5230\u5b58\u50a8\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%9C%A8%E6%9C%AC%E5%9C%B0%E5%AD%98%E5%82%A8%E5%BA%93%E4%B8%AD%E5%88%9B%E5%BB%BA%E4%B8%A4%E4%B8%AA%E6%96%87%E4%BB%B6\"><\/span>\u5728\u672c\u5730\u5b58\u50a8\u5e93\u4e2d\u521b\u5efa\u4e24\u4e2a\u6587\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/My-Repo\necho \"The domestic cat (Felis catus or Felis silvestris catus) is a small, usually furry, domesticated, and carnivorous mammal.\" &gt;cat.txt\necho \"The domestic dog (Canis lupus familiaris) is a canid that is known as man's best friend.\" &gt;dog.txt\n<\/code><\/pre>\n\n\n\n<p>ll\u5217\u51fa\u5df2\u521b\u5efa\u7684\u4e24\u4e2a\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"92\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-5.png\" alt=\"\" class=\"wp-image-1090\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-5.png 602w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-5-300x46.png 300w\" sizes=\"auto, (max-width: 602px) 100vw, 602px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%B0%86%E6%9B%B4%E6%94%B9%E6%9A%82%E5%AD%98%E5%88%B0%E6%9C%AC%E5%9C%B0%E5%AD%98%E5%82%A8%E5%BA%93\"><\/span>\u5c06\u66f4\u6539\u6682\u5b58\u5230\u672c\u5730\u5b58\u50a8\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>git add cat.txt dog.txt\n<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u67e5\u770b\u5b58\u50a8\u5e93\u72b6\u6001<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git status\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"593\" height=\"225\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-6.png\" alt=\"\" class=\"wp-image-1092\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-6.png 593w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-6-300x114.png 300w\" sizes=\"auto, (max-width: 593px) 100vw, 593px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8F%90%E4%BA%A4%E6%9C%AC%E5%9C%B0%E5%82%A8%E5%AD%98%E5%BA%93\"><\/span>\u63d0\u4ea4\u672c\u5730\u50a8\u5b58\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u4fbf\u5c06\u66f4\u6539\u63d0\u4ea4\u5230\u672c\u5730\u5b58\u50a8\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -m \"Added cat.txt and dog.txt\"\n<\/code><\/pre>\n\n\n\n<p>\u5e76\u53ef\u4ee5\u901a\u8fc7git log\u67e5\u770b\u521a\u521a\u8fdb\u884c\u7684\u63d0\u4ea4\u7684\u8be6\u7ec6\u4fe1\u606f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"709\" height=\"468\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-7.png\" alt=\"\" class=\"wp-image-1093\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-7.png 709w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-7-300x198.png 300w\" sizes=\"auto, (max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%8E%A8%E9%80%81%E6%8F%90%E4%BA%A4%E5%88%B0CodeCommit\"><\/span>\u63a8\u9001\u63d0\u4ea4\u5230CodeCommit<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u672c\u5730\u5b58\u50a8\u5e93\u4e2d\u6709\u4e00\u4e2a\u521d\u59cb\u63d0\u4ea4\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5c06\u63d0\u4ea4\u4ece\u672c\u5730\u5b58\u50a8\u5e93\u63a8\u9001\u5230 Amazon CodeCommit \u5b58\u50a8\u5e93\u4e86\u3002<\/p>\n\n\n\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4ee5\u4ece\u672c\u5730\u5b58\u50a8\u5e93\uff08\u4e3b\u5b58\u50a8\u5e93\uff09\u7684\u9ed8\u8ba4\u5206\u652f\u4e2d\uff0c\u901a\u8fc7 Git \u7528\u4e8e Amazon CodeCommit \u5b58\u50a8\u5e93\uff08\u6e90\uff09\u7684\u9ed8\u8ba4\u8fdc\u7a0b\u540d\u79f0\u6765\u63a8\u9001\u63d0\u4ea4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git push -u origin master\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"193\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-8.png\" alt=\"\" class=\"wp-image-1095\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-8.png 661w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-8-300x88.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/figure>\n\n\n\n<p>\u5c06\u4ee3\u7801\u63a8\u9001\u5230 Amazon CodeCommit \u5b58\u50a8\u5e93\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528 Amazon CodeCommit \u63a7\u5236\u53f0\u6765\u67e5\u770b\u5185\u5bb9\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1012\" height=\"400\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-9.png\" alt=\"\" class=\"wp-image-1097\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-9.png 1012w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-9-300x119.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-9-768x304.png 768w\" sizes=\"auto, (max-width: 1012px) 100vw, 1012px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-10.png\" alt=\"\" class=\"wp-image-1098\" width=\"1010\" height=\"296\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-10.png 1010w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-10-300x88.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-10-768x225.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1022\" height=\"295\" src=\"http:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-11.png\" alt=\"\" class=\"wp-image-1099\" srcset=\"https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-11.png 1022w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-11-300x87.png 300w, https:\/\/yushuoxin.top\/wp-content\/uploads\/2022\/10\/image-11-768x222.png 768w\" sizes=\"auto, (max-width: 1022px) 100vw, 1022px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%89%A9%E5%B1%95\"><\/span>\u6269\u5c55<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n\n\n<p>\u4e0a\u9762\u5df2\u7ecf\u521b\u5efa\u4e86\u4e00\u4e2a Amazon CodeCommit \u5b58\u50a8\u5e93\uff0c\u4e4b\u540e\u53ef\u4ee5\u8003\u8651\u5982\u4f55\u5c06\u5176\u7279\u6027\u548c\u529f\u80fd\u5f15\u5165\u5f00\u53d1\u5de5\u4f5c\u6d41\u7a0b\u3002\u5176\u4e2d\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u534f\u4f5c<\/strong>\uff1aAmazon CodeCommit \u4e13\u95e8\u7528\u4e8e\u534f\u4f5c\u8f6f\u4ef6\u5f00\u53d1\u3002CodeCommit \u8ba9\u60a8\u53ef\u4ee5\u63d0\u4ea4\u3001\u533a\u5206\u548c\u5408\u5e76\u4ee3\u7801\uff0c\u4ece\u800c\u8f7b\u677e\u63a7\u5236\u60a8\u7684\u56e2\u961f\u9879\u76ee\u3002\u60a8\u53ef\u4ee5\u7528\u4e9a\u9a6c\u900a\u4e91\u79d1\u6280\u7ba1\u7406\u63a7\u5236\u53f0\u3001Amazon CLI \u6216\u4e9a\u9a6c\u900a\u4e91\u79d1\u6280\u8f6f\u4ef6\u5f00\u53d1\u5de5\u5177\u5305\u521b\u5efa\u5b58\u50a8\u5e93\uff0c\u5e76\u4f7f\u7528 Git \u5904\u7406\u5b58\u50a8\u5e93\u3002<\/li><li><strong>\u52a0\u5bc6<\/strong>\uff1a\u60a8\u53ef\u4ee5\u901a\u8fc7 HTTPS \u548c SSH \u4ece Amazon CodeCommit \u6765\u56de\u4f20\u8f93\u6587\u4ef6\u3002\u60a8\u7684\u5b58\u50a8\u5e93\u8fd8\u4f1a\u4f7f\u7528\u5ba2\u6237\u7279\u5b9a\u7684\u5bc6\u94a5\u901a\u8fc7 Amazon Key Management Service \u81ea\u52a8\u8fdb\u884c\u9759\u6001\u52a0\u5bc6\u3002<\/li><li><strong>\u8bbf\u95ee\u63a7\u5236<\/strong>\uff1aAmazon CodeCommit \u4f7f\u7528 Amazon Identity and Access Management \u6765\u63a7\u5236\u548c\u76d1\u63a7\u8c01\u53ef\u4ee5\u8bbf\u95ee\u60a8\u7684\u6570\u636e\u4ee5\u53ca\u8bbf\u95ee\u7684\u65b9\u5f0f\u3001\u65f6\u95f4\u548c\u4f4d\u7f6e\u3002<\/li><li><strong>\u9ad8\u53ef\u7528\u6027\u548c\u6301\u4e45\u6027<\/strong>\uff1aAmazon CodeCommit \u4f1a\u5c06\u60a8\u7684\u5b58\u50a8\u5e93\u5b58\u50a8\u5728 Amazon S3 \u548c Amazon DynamoDB \u4e2d\u3002\u60a8\u7684\u6570\u636e\u4f1a\u4ee5\u5197\u4f59\u65b9\u5f0f\u5b58\u50a8\u5728\u591a\u4e2a\u8bbe\u65bd\u4e2d\u3002\u8fd9\u79cd\u67b6\u6784\u53ef\u4ee5\u63d0\u9ad8\u5b58\u50a8\u5e93\u6570\u636e\u7684\u53ef\u7528\u6027\u548c\u6301\u4e45\u6027\u3002<\/li><li><strong>\u65e0\u9650\u5b58\u50a8\u5e93<\/strong>\uff1aAmazon CodeCommit \u8ba9\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u521b\u5efa\u5c3d\u53ef\u80fd\u591a\u7684\u5b58\u50a8\u5e93\uff0c\u5e76\u4e14\u6ca1\u6709\u5927\u5c0f\u9650\u5236\u3002\u60a8\u53ef\u4ee5\u5b58\u50a8\u4efb\u4f55\u7c7b\u578b\u7684\u6587\u4ef6\u5e76\u5bf9\u5176\u8fdb\u884c\u7248\u672c\u63a7\u5236\uff0c\u4f8b\u5982\u4ee3\u7801\u968f\u9644\u7684\u56fe\u50cf\u548c\u5e93\u7b49\u5e94\u7528\u7a0b\u5e8f\u8d44\u4ea7\u3002<\/li><li><strong>\u8f7b\u677e\u8bbf\u95ee\u548c\u96c6\u6210<\/strong>\uff1a\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e9a\u9a6c\u900a\u4e91\u79d1\u6280\u7ba1\u7406\u63a7\u5236\u53f0\u3001Amazon CLI \u548c\u4e9a\u9a6c\u900a\u4e91\u79d1\u6280\u8f6f\u4ef6\u5f00\u53d1\u5de5\u5177\u5305\u6765\u7ba1\u7406\u60a8\u7684\u5b58\u50a8\u5e93\u3002\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 Git \u547d\u4ee4\u6216 Git \u56fe\u5f62\u5316\u5de5\u5177\u4e0e\u60a8\u7684\u5b58\u50a8\u5e93\u6e90\u6587\u4ef6\u8fdb\u884c\u4ea4\u4e92\u3002Amazon CodeCommit \u652f\u6301\u6240\u6709 Git \u547d\u4ee4\u5e76\u517c\u5bb9\u73b0\u6709 Git \u5de5\u5177\u3002\u60a8\u53ef\u4ee5\u4e0e\u60a8\u7684\u5f00\u53d1\u73af\u5883\u63d2\u4ef6\u6216\u6301\u7eed\u96c6\u6210\/\u6301\u7eed\u4ea4\u4ed8\u7cfb\u7edf\u96c6\u6210\u3002<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u7b14\u8bb0\u5185\u5bb9\u4e3b\u8981\u53c2\u8003AWS\u5cf0\u4f1a\u52a8\u624b\u5b9e\u9a8c\u5ba4<strong>Working with AWS CodeCommit<\/strong>\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u521b\u5efaCodeCommit\u50a8\u5b58\u5e93 \u5728EC2\u4e2d\u4f7f\u7528Git\u521b\u5efa\u672c\u5730\u50a8\u5b58\u5e93 \u5b89\u88c5git\u5ba2\u6237\u7aef \u914d\u7f6egit \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8],"tags":[7],"class_list":["post-1078","post","type-post","status-publish","format-standard","hentry","category-2","category-8","tag-aws"],"_links":{"self":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/posts\/1078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/comments?post=1078"}],"version-history":[{"count":0,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/posts\/1078\/revisions"}],"wp:attachment":[{"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/media?parent=1078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/categories?post=1078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yushuoxin.top\/index.php\/wp-json\/wp\/v2\/tags?post=1078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}