{"id":143,"date":"2025-10-30T16:27:20","date_gmt":"2025-10-30T08:27:20","guid":{"rendered":"http:\/\/180.76.113.73:8080\/?p=143"},"modified":"2026-06-29T18:18:04","modified_gmt":"2026-06-29T10:18:04","slug":"%e5%9c%a8github%e4%b8%ad%e5%90%8c%e6%ad%a5gitee%e4%bb%93%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.windafterglow.cn\/index.php\/2025\/10\/30\/%e5%9c%a8github%e4%b8%ad%e5%90%8c%e6%ad%a5gitee%e4%bb%93%e5%ba%93\/","title":{"rendered":"\u5728GitHub\u4e2d\u540c\u6b65Gitee\u4ed3\u5e93"},"content":{"rendered":"<h4><h4 class=\"wp-block-heading\">\u83b7\u53d6 GitHub \u4e2a\u4eba\u8bbf\u95ee\u4ee4\u724c<\/h4><\/h4>\n<ul>\n<li>\u767b\u5f55 GitHub\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u5934\u50cf\uff0c\u8fdb\u5165 <strong>Settings<\/strong>\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u8fb9\u680f\u6700\u4e0b\u65b9\u627e\u5230 <strong>Developer settings<\/strong>\uff0c\u7136\u540e\u9009\u62e9 <strong>Personal access tokens<\/strong> \u4e0b\u7684 <strong>Tokens (classic)<\/strong>\u3002<\/li>\n<li>\u70b9\u51fb <strong>Generate new token (classic)<\/strong>\uff0c\u4e3a\u5176\u6dfb\u52a0\u4e00\u4e2a\u5907\u6ce8\uff08\u5982\u201c\u7528\u4e8eGitee\u540c\u6b65\u201d\uff09\uff0c<strong>\u52a1\u5fc5\u52fe\u9009 <code>repo<\/code> \u6743\u9650<\/strong>\u3002\u5982\u679c\u5e0c\u671b\u81ea\u52a8\u540c\u6b65\uff0c\u8fd8\u9700\u52fe\u9009 <code>admin:repo_hook<\/code> \u6743\u9650\u3002\u7136\u540e\u751f\u6210\u5e76<strong>\u59a5\u5584\u4fdd\u5b58<\/strong>\u8fd9\u4e2a\u4ee4\u724c\u3002<\/li>\n<\/ul>\n<h4><h4 class=\"wp-block-heading\">\u5728 Gitee \u4ed3\u5e93\u4e2d\u8bbe\u7f6e\u955c\u50cf<\/h4><\/h4>\n<ul>\n<li>\u6253\u5f00\u4f60\u5728 Gitee \u4e0a\u60f3\u8981\u540c\u6b65\u7684\u4ed3\u5e93\u3002<\/li>\n<li>\u8fdb\u5165 <strong>\u7ba1\u7406<\/strong> -&gt; <strong>\u4ed3\u5e93\u955c\u50cf\u7ba1\u7406<\/strong>\u3002<\/li>\n<li>\u70b9\u51fb <strong>\u6dfb\u52a0\u955c\u50cf<\/strong>\u3002<\/li>\n<li>\u5173\u952e\u914d\u7f6e\u5982\u4e0b\uff1a\n<ul>\n<li><strong>\u955c\u50cf\u65b9\u5411<\/strong>\uff1a\u9009\u62e9 <strong>Push<\/strong>\uff0c\u8868\u793a\u4eceGitee\u63a8\u9001\u5230GitHub\u3002<\/li>\n<li><strong>\u955c\u50cf\u4ed3\u5e93<\/strong>\uff1a\u586b\u5199\u4f60\u7684GitHub\u4ed3\u5e93\u5730\u5740\uff0c\u683c\u5f0f\u4e3a <code>\u4f60\u7684\u7528\u6237\u540d\/\u4f60\u7684\u4ed3\u5e93\u540d<\/code>\u3002<\/li>\n<li><strong>\u79c1\u4eba\u4ee4\u724c<\/strong>\uff1a\u586b\u5165\u4f60\u4e0a\u4e00\u6b65\u83b7\u53d6\u7684GitHub\u4e2a\u4eba\u8bbf\u95ee\u4ee4\u724c\u3002<\/li>\n<li><strong>\u81ea\u52a8\u540c\u6b65<\/strong>\uff1a\u52fe\u9009\u6b64\u9879\uff0c\u8fd9\u6837\u4f60\u6bcf\u6b21\u63a8\u9001\u5230Gitee\uff0c\u53d8\u66f4\u4f1a\u57285\u5206\u949f\u5185\u81ea\u52a8\u540c\u6b65\u5230GitHub\u3002<\/li>\n<\/ul><\/li>\n<\/ul>\n<hr \/>\n<blockquote>\n<p><strong>\u6b64\u4e3aAI\u56de\u7b54\uff0c\u7528\u4f5c\u4e2a\u4eba\u8bb0\u5f55\u3002<\/strong><\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>\u83b7\u53d6 GitHub \u4e2a\u4eba\u8bbf\u95ee\u4ee4\u724c \u767b\u5f55 GitHub\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u5934\u50cf\uff0c\u8fdb\u5165 Settings\u3002 \u5728\u5de6\u4fa7\u8fb9\u680f\u6700\u4e0b\u65b9\u627e\u5230 Develo &#8230;<\/p>","protected":false},"author":1,"featured_media":146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[1],"tags":[10],"class_list":["post-143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1","tag-git"],"_links":{"self":[{"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":8,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/posts\/143\/revisions\/190"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/media\/146"}],"wp:attachment":[{"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.windafterglow.cn\/index.php\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}