{"id":19356,"date":"2024-11-19T12:22:19","date_gmt":"2024-11-19T04:22:19","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19356\/"},"modified":"2024-11-19T12:22:19","modified_gmt":"2024-11-19T04:22:19","slug":"%e4%b8%89%e7%a7%8d%e5%88%a0%e9%99%a4-github-%e5%88%86%e6%94%af%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19356\/","title":{"rendered":"\u4e09\u79cd\u5220\u9664 GitHub \u5206\u652f\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u60f3\u8981\u5220\u9664 github \u5206\u652f\u7684\u8bdd\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u7ed3\u5408\u5177\u4f53\u7684\u4f7f\u7528\u573a\u666f\uff0c\u4e3a\u4f60\u4ecb\u7ecd\u4e09\u79cd\u5220\u9664 github \u5206\u652f\u7684\u65b9\u6cd5\u3002<\/p>\n<h2>\u65b9\u6cd5\u4e00\uff1a\u901a\u8fc7\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f<\/h2>\n<p>GitHub \u63d0\u4f9b\u4e86\u975e\u5e38\u7b80\u4fbf\u7684\u7f51\u9875\u7aef\u64cd\u4f5c\u754c\u9762\uff0c\u5728\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f\u662f\u6700\u5e38\u89c1\u7684\u64cd\u4f5c\u65b9\u6cd5\u3002\u5982\u679c\u4f60\u4ec5\u4ec5\u9700\u8981\u5220\u9664\u4e00\u4e2a\u4e0d\u5e38\u7528\u7684\u5206\u652f\uff0c\u90a3\u4e48\u4f7f\u7528\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f\u5c31\u5f88\u9002\u5408\u3002<\/p>\n<p>\u5220\u9664\u5206\u652f\u7684\u64cd\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u9996\u5148\u767b\u5f55\u5230 GitHub \u7684\u7f51\u9875\u7aef\uff0c\u8fdb\u5165\u9700\u8981\u5220\u9664\u5206\u652f\u7684\u4ed3\u5e93\uff0c\u5207\u6362\u5230\u5206\u652f\u5217\u8868\u9875\u9762\u3002<\/li>\n<li>\u5728\u5206\u652f\u5217\u8868\u4e2d\u627e\u5230\u4f60\u9700\u8981\u5220\u9664\u7684\u5206\u652f\uff0c\u70b9\u51fb\u5206\u652f\u53f3\u4fa7\u7684\u201cTrash\u201d\u56fe\u6807\u3002<\/li>\n<li>\u5728\u786e\u8ba4\u5f39\u7a97\u4e2d\u70b9\u51fb\u201cDelete branch\u201d\u5373\u53ef\u5b8c\u6210\u5206\u652f\u5220\u9664\u64cd\u4f5c\u3002<\/li>\n<\/ol>\n<h2>\u65b9\u6cd5\u4e8c\uff1a\u901a\u8fc7 Git \u547d\u4ee4\u5220\u9664\u5206\u652f<\/h2>\n<p>\u5982\u679c\u4f60\u662f\u4e00\u540d\u4e13\u4e1a\u7684 Git \u7528\u6237\uff0c\u90a3\u4e48\u4f7f\u7528 Git \u547d\u4ee4\u5220\u9664\u5206\u652f\u5c06\u66f4\u52a0\u9002\u5408\u3002Git \u547d\u4ee4\u884c\u5de5\u5177\u53ef\u4ee5\u8ba9\u4f60\u66f4\u65b9\u4fbf\u5730\u7cbe\u7ec6\u63a7\u5236\u5206\u652f\u64cd\u4f5c\uff0c\u5305\u62ec\u5408\u5e76\u3001\u5220\u9664\u3001\u91cd\u547d\u540d\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u5220\u9664\u5206\u652f\u7684\u64cd\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u9996\u5148\u4f7f\u7528 Git \u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8fdb\u5165\u9700\u8981\u5220\u9664\u5206\u652f\u7684 Git \u4ed3\u5e93\u76ee\u5f55\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5220\u9664\u6307\u5b9a\u5206\u652f\uff1a<\/li>\n<\/ol>\n<pre>git branch -d [branch-name]<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5176\u4e2d\uff0c[branch-name] \u4e3a\u9700\u8981\u5220\u9664\u7684\u5206\u652f\u540d\u79f0\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\" class=\"aligncenter\" title=\"\u4e09\u79cd\u5220\u9664 GitHub \u5206\u652f\u7684\u65b9\u6cd5\u63d2\u56fe\" alt=\"\u4e09\u79cd\u5220\u9664 GitHub \u5206\u652f\u7684\u65b9\u6cd5\u63d2\u56fe\" \/><\/p>\n<ol>\n<li>\u5982\u679c\u5220\u9664\u5206\u652f\u51fa\u73b0\u5f02\u5e38\uff0c\u63d0\u793a\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/li>\n<\/ol>\n<pre>error: The branch [branch-name] is not fully merged.\nIf you are sure you want to delete it, run 'git branch -D [branch-name].<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u8fd9\u4e2a\u65f6\u5019\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u5220\u9664\u5206\u652f\uff1a<\/p>\n<pre>git branch -d [branch-name]<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236    \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<h2>\u65b9\u6cd5\u4e09\uff1a\u901a\u8fc7 GitHub Desktop \u5220\u9664\u5206\u652f<\/h2>\n<p>\u5982\u679c\u4f60\u662f\u4e00\u540d GitHub Desktop \u7684\u5fe0\u5b9e\u7528\u6237\uff0c\u90a3\u4e48\u4f7f\u7528 GitHub Desktop \u5de5\u5177\u5220\u9664\u5206\u652f\u5c06\u66f4\u52a0\u9002\u5408\u3002GitHub Desktop \u5de5\u5177\u53cb\u597d\u7684\u56fe\u5f62\u5316\u64cd\u4f5c\u754c\u9762\u53ef\u4ee5\u8ba9\u4f60\u66f4\u65b9\u4fbf\u5730\u64cd\u4f5c GitHub\u3002<\/p>\n<p>\u5220\u9664\u5206\u652f\u7684\u64cd\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u9996\u5148\u767b\u5f55\u5230 GitHub Desktop \u5de5\u5177\uff0c\u8fdb\u5165\u9700\u8981\u5220\u9664\u5206\u652f\u7684\u4ed3\u5e93\u3002<\/li>\n<li>\u627e\u5230\u9700\u8981\u5220\u9664\u7684\u5206\u652f\uff0c\u53f3\u952e\u70b9\u51fb\u8be5\u5206\u652f\uff0c\u9009\u62e9\u201cDelete branch\u201d\u5373\u53ef\u3002<\/li>\n<\/ol>\n<p>\u603b\u7ed3\uff1a<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e09\u79cd\u5220\u9664 GitHub \u5206\u652f\u7684\u65b9\u6cd5\uff0c\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f\u6700\u4e3a\u7b80\u4fbf\uff0c\u4f7f\u7528 Git \u547d\u4ee4\u5220\u9664\u5206\u652f\u6700\u4e3a\u7075\u6d3b\u3001\u5f3a\u5927\uff0c\u4f7f\u7528 GitHub Desktop \u5de5\u5177\u5220\u9664\u5206\u652f\u66f4\u52a0\u64cd\u4f5c\u53cb\u597d\u3002\u6839\u636e\u4e2a\u4eba\u9700\u6c42\uff0c\u9009\u62e9\u5408\u9002\u7684\u5206\u652f\u5220\u9664\u65b9\u6cd5\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e09\u79cd\u5220\u9664 GitHub \u5206\u652f\u7684\u65b9\u6cd5\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u60f3\u8981\u5220\u9664 github \u5206\u652f\u7684\u8bdd\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u7ed3\u5408\u5177\u4f53\u7684\u4f7f\u7528\u573a\u666f\uff0c\u4e3a\u4f60\u4ecb\u7ecd\u4e09\u79cd\u5220\u9664 github \u5206\u652f\u7684\u65b9\u6cd5\u3002 \u65b9\u6cd5\u4e00\uff1a\u901a\u8fc7\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f GitHub \u63d0\u4f9b\u4e86\u975e\u5e38\u7b80\u4fbf\u7684\u7f51\u9875\u7aef\u64cd\u4f5c\u754c\u9762\uff0c\u5728\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f\u662f\u6700\u5e38\u89c1\u7684\u64cd\u4f5c\u65b9\u6cd5\u3002\u5982\u679c\u4f60\u4ec5\u4ec5\u9700\u8981\u5220\u9664\u4e00\u4e2a\u4e0d\u5e38\u7528\u7684\u5206\u652f\uff0c\u90a3\u4e48\u4f7f\u7528\u7f51\u9875\u7aef\u5220\u9664\u5206\u652f\u5c31\u5f88\u9002\u5408\u3002 \u5220\u9664\u5206\u652f\u7684\u64cd\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a \u9996\u5148\u767b\u5f55\u5230 GitHub \u7684\u7f51\u9875\u7aef\uff0c\u8fdb\u5165\u9700\u8981\u5220\u9664\u5206\u652f\u7684\u4ed3\u5e93\uff0c\u5207\u6362\u5230\u5206\u652f\u5217\u8868\u9875\u9762\u3002 \u5728\u5206\u652f\u5217\u8868\u4e2d\u627e\u5230\u4f60\u9700\u8981\u5220\u9664\u7684\u5206\u652f\uff0c\u70b9\u51fb\u5206\u652f\u53f3\u4fa7\u7684\u201cTrash\u201d\u56fe\u6807\u3002 \u5728\u786e\u8ba4\u5f39\u7a97\u4e2d\u70b9\u51fb\u201cDelete branch\u201d\u5373\u53ef\u5b8c\u6210\u5206\u652f\u5220\u9664\u64cd\u4f5c\u3002 \u65b9\u6cd5\u4e8c\uff1a\u901a\u8fc7 Git \u547d\u4ee4\u5220\u9664\u5206\u652f \u5982\u679c\u4f60\u662f\u4e00\u540d\u4e13\u4e1a\u7684 Git \u7528\u6237\uff0c\u90a3\u4e48\u4f7f\u7528 Git \u547d\u4ee4\u5220\u9664\u5206\u652f\u5c06\u66f4\u52a0\u9002\u5408\u3002Git \u547d\u4ee4\u884c\u5de5\u5177\u53ef\u4ee5\u8ba9\u4f60\u66f4\u65b9\u4fbf\u5730\u7cbe\u7ec6\u63a7\u5236\u5206\u652f\u64cd\u4f5c\uff0c\u5305\u62ec\u5408\u5e76\u3001\u5220\u9664\u3001\u91cd\u547d\u540d\u7b49\u64cd\u4f5c\u3002 \u5220\u9664\u5206\u652f\u7684\u64cd\u4f5c\u6d41\u7a0b\u5982\u4e0b\uff1a \u9996\u5148\u4f7f\u7528 Git \u547d\u4ee4\u884c\u5de5\u5177\uff0c\u8fdb\u5165\u9700\u8981\u5220\u9664\u5206\u652f\u7684 Git \u4ed3\u5e93\u76ee\u5f55\u3002 \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5220\u9664\u6307\u5b9a\u5206\u652f\uff1a git branch -d [branch-name] \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff0c[branch-name] \u4e3a\u9700\u8981\u5220\u9664\u7684\u5206\u652f\u540d\u79f0\u3002 \u5982\u679c\u5220\u9664\u5206\u652f\u51fa\u73b0\u5f02\u5e38\uff0c\u63d0\u793a\u4ee5\u4e0b\u4fe1\u606f\uff1a error: The branch [branch-name] is not fully merged. If you are sure you want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19356","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=19356"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19356\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}