{"id":2816,"date":"2018-12-27T16:47:48","date_gmt":"2018-12-27T08:47:48","guid":{"rendered":"http:\/\/www.qdabc.cn\/?p=2816"},"modified":"2018-12-27T16:47:48","modified_gmt":"2018-12-27T08:47:48","slug":"git-%e6%9c%ac%e5%9c%b0%e4%bb%93%e5%ba%93%e4%b8%8e%e8%bf%9c%e7%a8%8b%e4%bb%93%e5%ba%93%e5%bb%ba%e7%ab%8b%e8%bf%9e%e6%8e%a5","status":"publish","type":"post","link":"http:\/\/www.qdabc.cn\/?p=2816","title":{"rendered":"git \u672c\u5730\u4ed3\u5e93\u4e0e\u8fdc\u7a0b\u4ed3\u5e93\u5efa\u7acb\u8fde\u63a5"},"content":{"rendered":"<p><span style=\"color: #ff6600;\">\u6211\u4eec\u5728\u4f7f\u7528git clone\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u62a5\u9519\uff1a<\/span><\/p>\n<p>Could not read from remote repository.Please make sure you have the correct access right<\/p>\n<p><span style=\"color: #ff6600;\">\u51fa\u73b0\u95ee\u9898\u7684\u539f\u56e0\uff1a<\/span><\/p>\n<p>\u6ca1\u6709\u5728github\u8d26\u53f7\u6dfb\u52a0 SSH key<\/p>\n<p><span style=\"color: #ff6600;\">\u89e3\u51b3\u65b9\u6cd5\u5982\u4e0b\uff1a<\/span><\/p>\n<p>1\u3001\u6253\u5f00CMD\u7ec8\u7aef\u3001\u6216\u8005git bash\u8f93\u5165\uff1a<\/p>\n<p>ssh-keygen -t rsa -C &#8220;123456789@qq.com&#8221;<\/p>\n<p>\u5982\u679c\u6267\u884c\u6210\u529f\u5219\u8fd4\u56de<\/p>\n<p>Generating public\/private rsa key pair.<br \/>\nEnter file in which to save the key (\/c\/Users\/IBM_ADMIN\/.ssh\/id_rsa)<\/p>\n<p>2\u3001\u51fa\u73b0\u4e0a\u6b65\u4fe1\u606f\u540e\u3001\u76f4\u63a5\u6309\u56de\u8f66\u3001\u8fd4\u56de\u4e0b\u9762\u4fe1\u606f\uff1a<\/p>\n<p>Enter passphrase (empty for no passphrase):<\/p>\n<p>3\u3001\u518d\u6b21\u56de\u8f66<\/p>\n<p>Enter same passphrase again:<\/p>\n<p>4\u3001\u518d\u6b21\u56de\u8f66<\/p>\n<p>Your identification has been saved in \/c\/Users\/IBM_ADMIN\/.ssh\/id_rsa.<br \/>\nYour public key has been saved in \/c\/Users\/IBM_ADMIN\/.ssh\/id_rsa.pub.<br \/>\nThe key fingerprint is:<br \/>\nSHA256:The secret key string\/The secret key string dietime1943@gmail.com<br \/>\nThe key&#8217;s randomart image is:<br \/>\n+&#8212;[RSA 2048]&#8212;-+<br \/>\n|\u00a0\u00a0 .+oB++.+ .\u00a0\u00a0\u00a0 |<br \/>\n| . . *+= + o\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0 o @ &#8230;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0\u00a0 = B.o . +\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0\u00a0\u00a0 o ..S B .\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0\u00a0 .\u00a0\u00a0 *.= o\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0\u00a0\u00a0 . . =.+\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0\u00a0 . .\u00a0\u00a0 =.\u00a0\u00a0\u00a0\u00a0\u00a0 |<br \/>\n|\u00a0 Eoo\u00a0\u00a0\u00a0\u00a0 .o.\u00a0\u00a0\u00a0 |<br \/>\n+&#8212;-[SHA256]&#8212;&#8211;+:<\/p>\n<p>5\u3001\u6267\u884c\u5230\u4e0a\u4e00\u6b65\u8bf4\u660eSSH key\u5c31\u5df2\u7ecf\u751f\u6210\u4e86\u3002\u6587\u4ef6\u76ee\u5f55\u5c31\u662f\uff1a\/c\/Users\/IBM_ADMIN\/.ssh\/id_rsa.pub.<\/p>\n<p>\u6211\u4eec\u6267\u884ccat\u547d\u4ee4\u67e5\u770b\u6587\u4ef6\u7684\u5185\u5bb9\uff1a<\/p>\n<p>cat \u00a0\u00a0\/c\/Users\/IBM_ADMIN\/.ssh\/id_rsa.pub.<\/p>\n<p>\u8fd9\u65f6\u5019\u4f1a\u770b\u89c1\uff1a<\/p>\n<p>ssh-rsa AAAAB3NzaC1yc2\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002\u3002<\/p>\n<p>(\u8bf4\u660e\uff1assh-rsa \u540e\u9762\u7684\u5185\u5bb9\u8fd9\u5c31\u662f\u4f60\u7684SSH keys)<\/p>\n<p>6\u3001\u628a\u663e\u793a\u51fa\u6765\u7684SSH keys\u76f4\u63a5\u6dfb\u52a0\u5230github\u8d26\u6237\u8bbe\u7f6e\u91cc\u8fb9\u7684SSH keys\uff0c\u6700\u540e\u518d\u6267\u884cgit clone\u547d\u4ee4\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p class=\"post-copyright\">\u6b22\u8fce\u5206\u4eab\u672c\u6587\uff0c\u8f6c\u8f7d\u8bf7\u4fdd\u7559\u51fa\u5904\uff1a<a href=\"http:\/\/www.qdabc.cn\">\u524d\u7aefABC<\/a> &raquo; <a href=\"http:\/\/www.qdabc.cn\/?p=2816\">git \u672c\u5730\u4ed3\u5e93\u4e0e\u8fdc\u7a0b\u4ed3\u5e93\u5efa\u7acb\u8fde\u63a5<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u5728\u4f7f\u7528git clone\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u62a5\u9519\uff1a Could not read from remote repository.Please make sure you have the correct  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2816"}],"collection":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2816"}],"version-history":[{"count":1,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2816\/revisions"}],"predecessor-version":[{"id":2817,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=\/wp\/v2\/posts\/2816\/revisions\/2817"}],"wp:attachment":[{"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2816"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.qdabc.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}