{"id":31045,"date":"2025-04-21T07:07:36","date_gmt":"2025-04-20T23:07:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/31045.html"},"modified":"2025-04-21T07:07:36","modified_gmt":"2025-04-20T23:07:36","slug":"%e3%80%90git%e3%80%91%e6%9b%b4%e6%8d%a2%e8%b4%a6%e5%8f%b7%e7%99%bb%e5%bd%95vscode%e5%90%8e%e6%8a%a5%e9%94%99remote-permission-to-git-denied-to","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/31045.html","title":{"rendered":"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***."},"content":{"rendered":"<h4>\u9519\u8bef\u573a\u666f\u4e0e\u539f\u56e0<\/h4>\n<p>\u7531\u4e8e\u4e4b\u524d\u6ce8\u518c\u4e86\u4e00\u4e2a\u65b0\u7684git\u8d26\u53f7\u5e76\u4e14\u4fdd\u7559\u5728VScode\u4e0a&#xff0c;\u6700\u8fd1\u5728\u5e38\u7528\u7684\u65e7git\u8d26\u53f7\u4e0a\u5efa\u4e86\u4e00\u4e2a\u4ed3\u5e93\u3002\u6ca1\u6709\u610f\u8bc6\u5230VScode\u4e0a\u767b\u5f55\u7684\u662f\u53e6\u4e00\u4e2a\u8d26\u53f7\u3002\u6211\u7167\u5e38\u62c9\u53d6\u4ed3\u5e93\u66f4\u6539\u4ee3\u7801\u63d0\u4ea4\u5230\u4ed3\u5e93&#xff0c;\u7ed3\u679c\u5c31\u662f\u6ca1\u6709\u6743\u9650\u5e76\u5728\u65b0\u8d26\u53f7\u7684\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u5efa\u4e86\u4e00\u4e2a\u65b0\u4ed3\u5e93\u5e76\u521b\u5efa\u4e86\u63d0\u4ea4\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u6211\u60f3\u8981\u7684\u6548\u679c&#xff0c;\u6211\u8fd8\u662f\u60f3\u5728\u65e7\u8d26\u53f7\u4e2d\u66f4\u65b0\u4ed3\u5e93\u3002<\/p>\n<p>\u9996\u5148\u8bf4\u4e00\u4e0b\u4e3a\u5565\u4f1a\u5b58\u5728\u8fd9\u79cd\u60c5\u51b5&#xff0c;\u540e\u7eed\u5728\u8bb0\u5f55\u6211\u5177\u4f53\u7684\u89e3\u51b3\u8fc7\u7a0b&#xff08;\u8d70\u5f2f\u8def\u8fc7\u7a0b&#xff09;\u3002<\/p>\n<p>Git \u4f1a\u7f13\u5b58\u4f60\u8f93\u5165\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff08;\u6216 token&#xff09;&#xff0c;\u5373\u4f7f\u4f60\u5df2\u7ecf\u5207\u6362\u4e86\u8d26\u6237&#xff0c;\u7f13\u5b58\u7684\u51ed\u8bc1\u4ecd\u7136\u4f1a\u7528\u4e8e\u8ba4\u8bc1\u3002\u5982\u679c\u65e7\u8d26\u6237\u7684\u51ed\u8bc1\u8fd8\u5728\u7f13\u5b58\u4e2d&#xff0c;Git \u4f1a\u7ee7\u7eed\u4f7f\u7528\u65e7\u8d26\u6237\u4fe1\u606f\u8fdb\u884c\u63a8\u9001\u3002<\/p>\n<p>\u63a7\u5236\u9762\u677f-&gt;\u51ed\u636e\u7ba1\u7406\u67e5\u770b <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230732-68057e34747bd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230732-68057e349dd42.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>\u5f2f\u8def\u8fc7\u7a0b<\/h4>\n<p>\u9996\u5148\u6211\u5220\u9664\u672c\u5730\u4ed3\u5e93\u76f8\u5173\u6587\u4ef6&#xff0c;\u5e76\u4e14\u5207\u6362VScode\u4e2d\u767b\u5f55\u7684\u8d26\u53f7\u3002\u91cd\u65b0\u62c9\u53d6\u4ed3\u5e93&#xff0c;\u5e76\u5728\u65e7\u8d26\u53f7\u7684\u64cd\u4f5c\u4e0b\u66f4\u65b0\u4ee3\u7801\u63d0\u4ea4\u3001\u63a8\u9001\u3002\u4f46\u662f\u4f9d\u7136\u5b58\u5728\u4e0b\u9762\u60c5\u51b5&#xff0c;\u4e0e\u4e4b\u524d\u7684\u65b0\u8d26\u53f7\u64cd\u4f5c\u4e00\u6837\u7684\u63d0\u793a&#xff08;\u56e0\u4e3a\u4e0a\u9762\u63d0\u5230\u7684\u539f\u56e0&#xff09;&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230733-68057e35231cc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u63a5\u4e0b\u6765\u5c31\u662f\u89e3\u51b3\u8fc7\u7a0b\u4e86&#xff1a;<\/p>\n<li>\n<p>\u901a\u8fc7\u547d\u4ee4git remote -v \u67e5\u770b\u5f53\u524d\u5173\u8054\u7684\u8fdc\u7a0b\u4ed3\u5e93 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230733-68057e355e301.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>git config user.name\u548cgit config user.email \u83b7\u53d6\u7684git\u8d26\u53f7\u4fe1\u606f\u90fd\u4e0e\u65e7\u8d26\u53f7\u4fdd\u6301\u4e00\u81f4<\/p>\n<\/li>\n<li>\n<p>ssh -T git&#064;github.com\u67e5\u770b\u5f53\u524d\u6743\u9650&#xff0c;\u662f\u88ab\u62d2\u7edd\u7684\u2026 \u8bf4\u660e SSH \u8ba4\u8bc1\u4ecd\u7136\u4f7f\u7528\u7684\u662f\u4e4b\u524d\u7684 GitHub \u8d26\u53f7\u7684 SSH \u5bc6\u94a5&#xff08;\u540e\u7eed\u64cd\u4f5c\u65f6\u53d1\u73b0\u6211\u7684github\u6ca1\u6709\u8fdb\u884cssh\u8ba4\u8bc1&#xff0c;\u4f7f\u7528\u7684\u662fhttps&#xff09;<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230733-68057e358dc5d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5bf9ssh\u8ba4\u8bc1\u8fdb\u884c\u914d\u7f6e&#xff0c;\u5728Git Bash\u4e2d\u751f\u6210\u5bc6\u94a5&#xff0c;\u590d\u5236\u516c\u94a5\u63d0\u4f9b\u7ed9GitHub<\/p>\n<\/li>\n<p><span class=\"token builtin class-name\">eval<\/span>  <span class=\"token string\">&#034;<span class=\"token variable\"><span class=\"token variable\">$(<\/span>ssh-agent <span class=\"token parameter variable\">-s<\/span><span class=\"token variable\">)<\/span><\/span>&#034;<\/span> <span class=\"token comment\"># \u542f\u52a8SSH\u4ee3\u7406<\/span><br \/>\nssh-keygen <span class=\"token parameter variable\">-t<\/span> rsa <span class=\"token parameter variable\">-b<\/span> <span class=\"token number\">4096<\/span> <span class=\"token parameter variable\">-C<\/span> <span class=\"token string\">&#034;email.com&#034;<\/span> <span class=\"token comment\"># \u751f\u6210\u65b0\u7684SSH\u5bc6\u94a5<\/span><br \/>\nssh-add ~\/.ssh\/id_rsa <span class=\"token comment\"># \u5c06\u751f\u6210\u7684\u79c1\u94a5\u6dfb\u52a0\u5230SSH\u4ee3\u7406<\/span><br \/>\n<span class=\"token function\">cat<\/span> ~\/.ssh\/id_rsa.pub <span class=\"token comment\"># \u83b7\u53d6\u516c\u94a5\u5185\u5bb9&#xff0c;\u5e76\u590d\u5236<\/span><\/p>\n<p>\u590d\u5236\u516c\u94a5\u540e&#xff0c;\u8fdb\u5165GitHub-&gt;SSH and GPG Keys-&gt;New SSH key. \u65b0\u589e new key \u5c06\u590d\u5236\u7684\u516c\u94a5\u6dfb\u52a0\u8fdb\u53bb <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230733-68057e35bc8bf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><span class=\"token function\">ssh<\/span> <span class=\"token parameter variable\">-T<\/span> git&#064;github.com <span class=\"token comment\"># \u9a8c\u8bc1\u662f\u5426\u8ba4\u8bc1\u6210\u529f<\/span><\/p>\n<p>\u663e\u793a\u4e0b\u9762\u5185\u5bb9\u8868\u793a\u6210\u529f&#xff1a;<\/p>\n<p>Hi XXX<span class=\"token operator\">!<\/span> You&#039;ve successfully authenticated, but GitHub does not provide shell access.<\/p>\n<p>\u5230\u8fd9\u4e00\u6b65\u8ba4\u8bc1\u6210\u529f\u4e86&#xff01;\u4f46\u662f\u6211\u63a8\u9001\u4f9d\u7136\u6ca1\u6709\u6210\u529f&#xff0c;\u539f\u56e0\u6709\u4e24\u4e2a&#xff1a;&#xff08;1&#xff09;\u4ed3\u5e93\u63a8\u9001\u7684\u65f6\u5019\u4f7f\u7528\u7684HTTPS\u8fdb\u884c\u901a\u4fe1&#xff1b;&#xff08;2&#xff09;git\u4f7f\u7528\u7f13\u5b58\u4e2d\u7684\u65e7\u51ed\u8bc1\u8fdb\u884c\u9a8c\u8bc1 (\u56e0\u4e3a\u8fd9\u65f6\u5019\u6211\u8fd8\u6ca1\u53d1\u73b0\u7f13\u5b58\u65e7\u51ed\u8bc1\u8fd9\u56de\u4e8b)<\/p>\n<li>\u5c06\u4ed3\u5e93https\u6539\u4e3assh\u8ba4\u8bc1 https\u4e0b\u6211\u4eec\u901a\u8fc7git remote -v \u770b\u5230\u7684\u4ed3\u5e93\u683c\u5f0f\u5982\u4e0b&#xff0c;\u662f\u5305\u542bhttps \u7684<\/li>\n<p>origin  https:\/\/github.com\/***\/repo_name.git <span class=\"token punctuation\">(<\/span>fetch<span class=\"token punctuation\">)<\/span><br \/>\norigin  https:\/\/github.com\/***\/repo_name.git <span class=\"token punctuation\">(<\/span>push<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u901a\u8fc7\u4e0b\u9762\u547d\u4ee4\u4fee\u6539\u683c\u5f0f&#xff1a;<\/p>\n<p><span class=\"token function\">git<\/span> remote set-url origin git&#064;github.com:***\/\u4ed3\u5e93\u540d.git<\/p>\n<p>\u8fd9\u5c31\u53ef\u4ee5\u63a8\u9001\u5566&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb877\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u7531\u4e8e\u4e4b\u524d\u6ce8\u518c\u4e86\u4e00\u4e2a\u65b0\u7684git\u8d26\u53f7\u5e76\u4e14\u4fdd\u7559\u5728VScode\u4e0a\uff0c\u6700\u8fd1\u5728\u5e38\u7528\u7684\u65e7git\u8d26\u53f7\u4e0a\u5efa\u4e86\u4e00\u4e2a\u4ed3\u5e93\u3002\u6211\u7167\u5e38\u62c9\u53d6\u4ed3\u5e93\u66f4\u6539\u4ee3\u7801\u63d0\u4ea4\u5230\u4ed3\u5e93\uff0c\u7ed3\u679c\u5c31\u662f\u6ca1\u6709\u6743\u9650\u5e76\u5728\u65b0\u8d26\u53f7\u7684\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u5efa\u4e86\u4e00\u4e2a\u65b0\u4ed3\u5e93\u5e76\u521b\u5efa\u4e86\u63d0\u4ea4\u3002\u8bf4\u660e SSH \u8ba4\u8bc1\u4ecd\u7136\u4f7f\u7528\u7684\u662f\u4e4b\u524d\u7684 GitHub \u8d26\u53f7\u7684 SSH \u5bc6\u94a5\uff08\u540e\u7eed\u64cd\u4f5c\u65f6\u53d1\u73b0\u6211\u7684github\u6ca1\u6709\u8fdb\u884cssh\u8ba4\u8bc1\uff0c\u4f7f\u7528\u7684\u662fhttps\uff09\u4f46\u662f\u6211\u63a8\u9001\u4f9d\u7136\u6ca1\u6709\u6210\u529f\uff0c\u539f\u56e0\u6709\u4e24\u4e2a\uff1a\uff081\uff09\u4ed3\u5e93\u63a8\u9001\u7684\u65f6\u5019\u4f7f\u7528\u7684HTTPS\u8fdb\u884c\u901a\u4fe1\uff1b\u8fd9\u4e0d\u662f\u6211\u60f3\u8981\u7684\u6548\u679c\uff0c\u6211\u8fd8\u662f\u60f3\u5728\u65e7\u8d26\u53f7\u4e2d\u66f4\u65b0\u4ed3\u5e93\u3002\u67e5\u770b\u5f53\u524d\u6743\u9650\uff0c\u662f\u88ab\u62d2\u7edd\u7684\u2026_vscode\u5207\u6362git\u8d26\u53f7\u540e\u62c9\u53d6\u4e0a\u4f20\u4e0d\u4e86\u4ee3\u7801<\/p>\n","protected":false},"author":2,"featured_media":31039,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2491,89,70,76,2492],"topic":[],"class_list":["post-31045","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-errors","tag-git","tag-ide","tag-vscode","tag-2492"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***. - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/31045.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***. - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb877\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u7531\u4e8e\u4e4b\u524d\u6ce8\u518c\u4e86\u4e00\u4e2a\u65b0\u7684git\u8d26\u53f7\u5e76\u4e14\u4fdd\u7559\u5728VScode\u4e0a\uff0c\u6700\u8fd1\u5728\u5e38\u7528\u7684\u65e7git\u8d26\u53f7\u4e0a\u5efa\u4e86\u4e00\u4e2a\u4ed3\u5e93\u3002\u6211\u7167\u5e38\u62c9\u53d6\u4ed3\u5e93\u66f4\u6539\u4ee3\u7801\u63d0\u4ea4\u5230\u4ed3\u5e93\uff0c\u7ed3\u679c\u5c31\u662f\u6ca1\u6709\u6743\u9650\u5e76\u5728\u65b0\u8d26\u53f7\u7684\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u5efa\u4e86\u4e00\u4e2a\u65b0\u4ed3\u5e93\u5e76\u521b\u5efa\u4e86\u63d0\u4ea4\u3002\u8bf4\u660e SSH \u8ba4\u8bc1\u4ecd\u7136\u4f7f\u7528\u7684\u662f\u4e4b\u524d\u7684 GitHub \u8d26\u53f7\u7684 SSH \u5bc6\u94a5\uff08\u540e\u7eed\u64cd\u4f5c\u65f6\u53d1\u73b0\u6211\u7684github\u6ca1\u6709\u8fdb\u884cssh\u8ba4\u8bc1\uff0c\u4f7f\u7528\u7684\u662fhttps\uff09\u4f46\u662f\u6211\u63a8\u9001\u4f9d\u7136\u6ca1\u6709\u6210\u529f\uff0c\u539f\u56e0\u6709\u4e24\u4e2a\uff1a\uff081\uff09\u4ed3\u5e93\u63a8\u9001\u7684\u65f6\u5019\u4f7f\u7528\u7684HTTPS\u8fdb\u884c\u901a\u4fe1\uff1b\u8fd9\u4e0d\u662f\u6211\u60f3\u8981\u7684\u6548\u679c\uff0c\u6211\u8fd8\u662f\u60f3\u5728\u65e7\u8d26\u53f7\u4e2d\u66f4\u65b0\u4ed3\u5e93\u3002\u67e5\u770b\u5f53\u524d\u6743\u9650\uff0c\u662f\u88ab\u62d2\u7edd\u7684\u2026_vscode\u5207\u6362git\u8d26\u53f7\u540e\u62c9\u53d6\u4e0a\u4f20\u4e0d\u4e86\u4ee3\u7801\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/31045.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-20T23:07:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230732-68057e34747bd.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31045.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/31045.html\",\"name\":\"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***. - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-20T23:07:36+00:00\",\"dateModified\":\"2025-04-20T23:07:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/31045.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/31045.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/31045.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***. - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/31045.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***. - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb877\u6b21\uff0c\u70b9\u8d5e5\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u7531\u4e8e\u4e4b\u524d\u6ce8\u518c\u4e86\u4e00\u4e2a\u65b0\u7684git\u8d26\u53f7\u5e76\u4e14\u4fdd\u7559\u5728VScode\u4e0a\uff0c\u6700\u8fd1\u5728\u5e38\u7528\u7684\u65e7git\u8d26\u53f7\u4e0a\u5efa\u4e86\u4e00\u4e2a\u4ed3\u5e93\u3002\u6211\u7167\u5e38\u62c9\u53d6\u4ed3\u5e93\u66f4\u6539\u4ee3\u7801\u63d0\u4ea4\u5230\u4ed3\u5e93\uff0c\u7ed3\u679c\u5c31\u662f\u6ca1\u6709\u6743\u9650\u5e76\u5728\u65b0\u8d26\u53f7\u7684\u8fdc\u7a0b\u4ed3\u5e93\u4e2d\u5efa\u4e86\u4e00\u4e2a\u65b0\u4ed3\u5e93\u5e76\u521b\u5efa\u4e86\u63d0\u4ea4\u3002\u8bf4\u660e SSH \u8ba4\u8bc1\u4ecd\u7136\u4f7f\u7528\u7684\u662f\u4e4b\u524d\u7684 GitHub \u8d26\u53f7\u7684 SSH \u5bc6\u94a5\uff08\u540e\u7eed\u64cd\u4f5c\u65f6\u53d1\u73b0\u6211\u7684github\u6ca1\u6709\u8fdb\u884cssh\u8ba4\u8bc1\uff0c\u4f7f\u7528\u7684\u662fhttps\uff09\u4f46\u662f\u6211\u63a8\u9001\u4f9d\u7136\u6ca1\u6709\u6210\u529f\uff0c\u539f\u56e0\u6709\u4e24\u4e2a\uff1a\uff081\uff09\u4ed3\u5e93\u63a8\u9001\u7684\u65f6\u5019\u4f7f\u7528\u7684HTTPS\u8fdb\u884c\u901a\u4fe1\uff1b\u8fd9\u4e0d\u662f\u6211\u60f3\u8981\u7684\u6548\u679c\uff0c\u6211\u8fd8\u662f\u60f3\u5728\u65e7\u8d26\u53f7\u4e2d\u66f4\u65b0\u4ed3\u5e93\u3002\u67e5\u770b\u5f53\u524d\u6743\u9650\uff0c\u662f\u88ab\u62d2\u7edd\u7684\u2026_vscode\u5207\u6362git\u8d26\u53f7\u540e\u62c9\u53d6\u4e0a\u4f20\u4e0d\u4e86\u4ee3\u7801","og_url":"https:\/\/www.wsisp.com\/helps\/31045.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-20T23:07:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250420230732-68057e34747bd.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/31045.html","url":"https:\/\/www.wsisp.com\/helps\/31045.html","name":"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***. - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-20T23:07:36+00:00","dateModified":"2025-04-20T23:07:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/31045.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/31045.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/31045.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010git\u3011\u66f4\u6362\u8d26\u53f7\u767b\u5f55VSCode\u540e\u62a5\u9519remote: Permission to **\/**.git denied to ***."}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=31045"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/31045\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/31039"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=31045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=31045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=31045"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=31045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}