{"id":448,"date":"2021-05-19T16:03:37","date_gmt":"2021-05-19T08:03:37","guid":{"rendered":"https:\/\/22pig.com\/?p=448"},"modified":"2021-05-19T16:03:37","modified_gmt":"2021-05-19T08:03:37","slug":"git-clone-%e9%9d%9e%e6%a0%87%e5%87%86%e7%9a%84ssh%e7%ab%af%e5%8f%a3%e9%9d%9e22%ef%bc%89%e7%ab%af%e5%8f%a3","status":"publish","type":"post","link":"http:\/\/22pig.com\/?p=448","title":{"rendered":"git clone \u975e\u6807\u51c6\u7684ssh\u7aef\u53e3(\u975e22\uff09\u7aef\u53e3"},"content":{"rendered":"<p>\u9ed8\u8ba4\u65b9\u5f0f\uff1a<span class=\"pln\">git clone whlook@hostname<\/span><span class=\"pun\">:<\/span><span class=\"str\">\/volume1\/<\/span><span class=\"typ\">GitRepo<\/span><span class=\"pun\">\/<\/span><span class=\"pln\">project01<\/span><span class=\"pun\">\/<\/span><\/p>\n<p>\u5f53\u6211\u4f7f\u7528git clone git@xxx:8022:develop\/xxx.git \u53d1\u73b0\u4e0d\u80fd\u5b9e\u73b0\u4ee3\u7801\u7684clone<\/p>\n<p>\u539f\u6765\uff0c\u5f53ssh\u7684\u7aef\u53e3\u8bbf\u95ee\u6539\u53d8\u7684\u65f6\u5019\uff0c\u539f\u6765\u7684\u65b9\u5f0f\u5c31\u4e0d\u884c\u4e86,\u5c31\u8981\u4f7f\u7528\u65b0\u7684\u65b9\u5f0f<\/p>\n<p>git clone ssh:\/\/git@hostname:port\/\u2026\/xxx.git<\/p>\n<p>hostname\uff1a\u53ef\u4ee5\u662f\u4e3b\u673a\u7684IP\u5730\u5740\u4e5f\u53ef\u4ee5\u662f\u57df\u540d\uff0c\u57df\u540d\u4f1a\u81ea\u52a8\u901a\u8fc7DNS\u8fdb\u884c\u89e3\u6790<\/p>\n<p>port:\u7aef\u53e3\u53f7<\/p>\n<p>\u6837\u4f8b\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>git clone <strong>ssh:\/\/<\/strong>git@hostname<strong>:8022\/<\/strong>volume1\/git\/project01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9ed8\u8ba4\u65b9\u5f0f\uff1agit clone whlook@hostname:\/volume1\/GitRepo\/project01\/ \u5f53\u6211\u4f7f\u7528git clone git@xxx:8022:develop\/xxx.git \u53d1\u73b0\u4e0d\u80fd\u5b9e\u73b0\u4ee3\u7801\u7684clone \u539f\u6765\uff0c\u5f53ssh\u7684\u7aef\u53e3\u8bbf\u95ee\u6539\u53d8\u7684\u65f6\u5019\uff0c\u539f\u6765\u7684\u65b9\u5f0f\u5c31\u4e0d\u884c\u4e86,\u5c31\u8981\u4f7f\u7528\u65b0\u7684\u65b9\u5f0f git clone ssh:\/\/git@hostname:port\/\u2026\/xxx.git hostname\uff1a\u53ef\u4ee5\u662f\u4e3b\u673a\u7684IP\u5730\u5740\u4e5f\u53ef\u4ee5\u662f\u57df\u540d\uff0c\u57df\u540d\u4f1a\u81ea\u52a8\u901a\u8fc7DNS\u8fdb\u884c\u89e3\u6790 port:\u7aef\u53e3\u53f7 \u6837\u4f8b\u5982\u4e0b\u6240\u793a\uff1a git clone ssh:\/\/git@hostname:8022\/volume1\/git\/project01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-448","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=448"}],"version-history":[{"count":0,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/448\/revisions"}],"wp:attachment":[{"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}