{"id":222,"date":"2026-10-25T12:07:48","date_gmt":"2026-10-25T04:07:48","guid":{"rendered":"http:\/\/laoke.pw\/?p=222"},"modified":"2026-10-25T12:07:48","modified_gmt":"2026-10-25T04:07:48","slug":"184-github-desktop-%e4%b8%8d%e8%83%8c%e5%91%bd%e4%bb%a4%e4%b9%9f%e8%83%bd%e6%8a%8a-git-%e7%94%a8%e6%98%8e%e7%99%bd","status":"publish","type":"post","link":"https:\/\/laoke.pw\/?p=222","title":{"rendered":"184 GitHub Desktop \u2014\u2014 \u4e0d\u80cc\u547d\u4ee4\u4e5f\u80fd\u628a Git \u7528\u660e\u767d"},"content":{"rendered":"<p><strong>\u4e00\u53e5\u8bdd\u5b9a\u4f4d<\/strong>\uff1aGitHub Desktop \u662f GitHub \u5b98\u65b9\u7684\u56fe\u5f62\u5316 Git \u5ba2\u6237\u7aef\uff0c\u628a\u63d0\u4ea4\u3001\u5206\u652f\u3001\u5408\u5e76\u8fd9\u4e9b\u64cd\u4f5c\u5168\u90e8\u53d8\u6210\u70b9\u9f20\u6807\u3002<\/p>\n<p><strong>\u75db\u70b9\u5206\u6790<\/strong>\uff1aGit \u547d\u4ee4\u884c\u5bf9\u65b0\u624b\u786e\u5b9e\u529d\u9000\uff1aclone\u3001add\u3001commit\u3001push\u3001pull \u4e00\u5957\u4e0b\u6765\u5bb9\u6613\u624b\u5fd9\u811a\u4e71\uff0c\u4e00\u65e6\u9047\u5230\u51b2\u7a81\uff0c<code>git status<\/code> \u91cc\u4e00\u5806\u770b\u4e0d\u61c2\u7684\u72b6\u6001\uff0c\u5f88\u591a\u4eba\u76f4\u63a5\u641c&quot;\u5982\u4f55\u64a4\u9500 merge&quot;\u641c\u5230\u534a\u591c\u3002\u5176\u5b9e\u65e5\u5e38\u5f00\u53d1\u91cc 90% \u7684 Git \u64cd\u4f5c\u5c31\u90a3\u4e48\u51e0\u6b65\uff0c\u5b8c\u5168\u53ef\u4ee5\u7528\u56fe\u5f62\u754c\u9762\u66ff\u4ee3\u3002<\/p>\n<p><strong>\u6838\u5fc3\u80fd\u529b<\/strong>\uff1a<\/p>\n<ul>\n<li>\u53ef\u89c6\u5316\u6682\u5b58\u533a\uff1a\u6539\u52a8\u6587\u4ef6\u9010\u4e2a\u52fe\u9009\u63d0\u4ea4\uff0c\u884c\u7ea7\u522b\u7684\u53d6\u820d\u4e5f\u652f\u6301\uff0c\u907f\u514d&quot;\u4e00\u9505\u7aef&quot;\u5f0f\u63d0\u4ea4<\/li>\n<li>\u5206\u652f\u64cd\u4f5c\u5168\u90e8\u6309\u94ae\u5316\uff1a\u65b0\u5efa\u3001\u5207\u6362\u3001\u5408\u5e76\u3001\u53d8\u57fa\u70b9\u4e00\u4e0b\u5c31\u5b8c\u6210\uff0c\u51b2\u7a81\u65f6\u53cc\u51fb\u6587\u4ef6\u8fdb\u5165\u5185\u7f6e\u5bf9\u6bd4\u754c\u9762\u624b\u52a8\u89e3\u51b3<\/li>\n<li>\u5386\u53f2\u8bb0\u5f55\u4e00\u76ee\u4e86\u7136\uff0c\u6bcf\u6b21\u63d0\u4ea4\u6539\u4e86\u54ea\u4e9b\u884c\u7528\u7ea2\u7eff\u9ad8\u4eae\u5c55\u793a\uff0c\u56de\u6eda\u67d0\u4e2a\u63d0\u4ea4\u4e5f\u662f\u53f3\u952e\u641e\u5b9a<\/li>\n<li>\u4e0e GitHub \u6df1\u5ea6\u96c6\u6210\uff1a\u4e00\u952e\u521b\u5efa\u4ed3\u5e93\u3001\u53d1 Pull Request\u3001\u67e5\u770b CI \u72b6\u6001\uff0c\u767b\u5f55\u8d26\u53f7\u5373\u53ef<\/li>\n<li>\u5185\u7f6e\u901a\u77e5\u63d0\u9192\uff0c\u4ed3\u5e93\u6709\u65b0\u7684 Issue \u8bc4\u8bba\u6216 Review \u8bf7\u6c42\u4f1a\u5f39\u6c14\u6ce1\uff0c\u4e0d\u7528\u603b\u5f00\u7740\u7f51\u9875\u5237<\/li>\n<li>\u63d0\u4ea4\u5386\u53f2\u652f\u6301\u6309\u4f5c\u8005\u7b5b\u9009\uff0c\u591a\u4eba\u534f\u4f5c\u65f6\u5feb\u901f\u627e\u51fa\u67d0\u4e2a\u4eba\u7684\u6539\u52a8\u8f68\u8ff9<\/li>\n<\/ul>\n<p><strong>\u5b9e\u6d4b\u4f53\u9a8c<\/strong>\uff1a\u5b89\u88c5\u5305 120MB \u5de6\u53f3\uff0c\u5b89\u88c5\u5b8c\u767b\u5f55 GitHub \u8d26\u53f7\u5c31\u80fd\u76f4\u63a5 clone \u4ed3\u5e93\u3002\u65e5\u5e38\u5199\u6587\u6863\u7684\u5de5\u4f5c\u6d41\u662f\uff1a\u5de6\u4fa7\u770b\u5230\u6539\u52a8\u6587\u4ef6 \u2192 \u52fe\u9009 \u2192 \u5199\u63d0\u4ea4\u4fe1\u606f \u2192 \u70b9 Commit \u2192 \u70b9 Push\uff0c\u4e09\u6b65\u8d70\u5b8c\uff0c\u6574\u4e2a\u8fc7\u7a0b 20 \u79d2\u3002\u6709\u4e00\u6b21\u540c\u4e8b\u6539\u4e86\u6211\u6b63\u5728\u6539\u7684\u540c\u4e00\u884c\uff0c\u62c9\u53d6\u65f6\u5f39\u51fa\u51b2\u7a81\u754c\u9762\uff0c\u5de6\u53f3\u4e24\u680f\u5bf9\u7167\u7740\u9009\u4fdd\u7559\u54ea\u90e8\u5206\uff0c\u6bd4\u5728\u547d\u4ee4\u884c\u91cc\u89e3\u51b2\u7a81\u76f4\u89c2\u592a\u591a\u3002\u5bf9\u7eaf\u547d\u4ee4\u884c\u515a\u6765\u8bf4\u5b83\u4e0d\u662f\u66ff\u4ee3\u54c1\uff0c\u4f46\u5bf9\u5927\u591a\u6570\u4eba\u5b83\u662f&quot;\u591f\u7528\u4e14\u4e0d\u5413\u4eba&quot;\u7684\u90a3\u4e00\u4e2a\u3002<\/p>\n<p>\u53e6\u5916\u4f53\u9a8c\u4e86\u4e00\u4e2a\u7ec6\u8282\uff1a\u5b83\u7684&quot;Fetch origin&quot;\u662f\u540e\u53f0\u5b9a\u65f6\u81ea\u52a8\u6267\u884c\u7684\uff0c\u6240\u4ee5\u6253\u5f00\u8f6f\u4ef6\u65f6\u8fdc\u7aef\u6709\u6ca1\u6709\u65b0\u63d0\u4ea4\u3001\u672c\u5730\u843d\u540e\u51e0\u4e2a\u7248\u672c\uff0c\u4e00\u773c\u5c31\u80fd\u770b\u5230\uff0c\u4e0d\u7528\u8bb0\u5f97\u5148 pull \u518d\u5e72\u6d3b\u3002\u952e\u76d8\u515a\u4e5f\u522b\u6025\u7740\u5212\u8d70\uff0c\u8f6f\u4ef6\u5185\u5e38\u7528\u64cd\u4f5c\u90fd\u6709\u5feb\u6377\u952e\uff0cCtrl+Shift+G \u6253\u5f00\u3001Ctrl+Enter \u63d0\u4ea4\uff0c\u719f\u7ec3\u540e\u53cc\u624b\u57fa\u672c\u4e0d\u7528\u78b0\u9f20\u6807\u3002<\/p>\n<p><strong>\u9002\u5408\u8c01<\/strong>\uff1a\u521a\u63a5\u89e6 Git \u7684\u5b66\u751f\u548c\u65b0\u624b\u3001\u4e3b\u8981\u505a\u6587\u6863\u5199\u4f5c\u6216\u524d\u7aef\u9875\u9762\u3001\u4e0d\u60f3\u80cc\u547d\u4ee4\u7684\u975e\u4e13\u4e1a\u7a0b\u5e8f\u5458\uff1b\u4ea7\u54c1\u7ecf\u7406\u67e5\u770b\u540c\u4e8b\u4ed3\u5e93\u53d8\u5316\u4e5f\u591f\u7528\uff0c\u914d\u5408\u540c\u4e8b\u8bc4\u5ba1\u4ee3\u7801\u65f6\u7ffb\u5386\u53f2\u4e5f\u65b9\u4fbf\u3002<\/p>\n<p><strong>\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/strong>\uff1a<\/p>\n<ul>\n<li>\u9ad8\u7ea7\u64cd\u4f5c\u5982\u4ea4\u4e92\u5f0f rebase\u3001cherry-pick\u3001\u5b50\u6a21\u5757\u7ba1\u7406\u4e0d\u652f\u6301\uff0c\u4ecd\u9700\u547d\u4ee4\u884c\u8865\u4f4d<\/li>\n<li>\u53ea\u652f\u6301 GitHub \u548c GitHub Enterprise \u8d26\u53f7\uff0cGitLab\u3001Gitee \u4ed3\u5e93\u867d\u7136\u80fd\u514b\u9686\uff0c\u4f46\u6ca1\u6709 PR \u96c6\u6210<\/li>\n<li>\u63d0\u4ea4\u524d\u8bb0\u5f97\u786e\u8ba4\u52fe\u9009\u7684\u6587\u4ef6\uff0c\u8bef\u628a\u7f16\u8bd1\u4ea7\u7269\u63d0\u4ea4\u8fdb\u53bb\u662f\u65b0\u624b\u6700\u5e38\u89c1\u7684\u4e8b\u6545<\/li>\n<li>\u4ed3\u5e93\u8def\u5f84\u542b\u4e2d\u6587\u6216\u7279\u6b8a\u5b57\u7b26\u65f6\u5076\u53d1\u514b\u9686\u5931\u8d25\uff0c\u5efa\u8bae\u9879\u76ee\u76ee\u5f55\u4fdd\u6301\u7eaf\u82f1\u6587\u8def\u5f84<\/li>\n<\/ul>\n<p><strong>\u5c0f\u7ed3<\/strong>\uff1aGitHub Desktop \u628a Git \u7684\u5b66\u4e60\u66f2\u7ebf\u524a\u5e73\u4e86\u4e00\u5927\u622a\uff0c\u5148\u9760\u5b83\u5efa\u7acb&quot;\u63d0\u4ea4\u2014\u5206\u652f\u2014\u5408\u5e76&quot;\u7684\u5fc3\u667a\u6a21\u578b\uff0c\u518d\u9010\u6b65\u8fc7\u6e21\u5230\u547d\u4ee4\u884c\uff0c\u662f\u6700\u5e73\u6ed1\u7684\u4e0a\u624b\u8def\u5f84\u3002\u5de5\u5177\u6ca1\u6709\u9ad8\u4f4e\u4e4b\u5206\uff0c\u80fd\u8ba9\u4f60\u5b89\u5fc3\u5199\u4ee3\u7801\u3001\u5c11\u6454\u8ddf\u5934\u7684\u5c31\u662f\u597d\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53e6\u5916\u4f53\u9a8c\u4e86\u4e00\u4e2a\u7ec6\u8282\uff1a\u5b83\u7684&#8221;Fetch origin&#8221;\u662f\u540e\u53f0\u5b9a\u65f6\u81ea\u52a8\u6267\u884c\u7684\uff0c\u6240\u4ee5\u6253\u5f00\u8f6f\u4ef6\u65f6\u8fdc\u7aef\u6709\u6ca1\u6709\u65b0\u63d0\u4ea4\u3001\u672c\u5730\u843d\u540e\u51e0\u4e2a\u7248\u672c\uff0c\u4e00\u773c\u5c31\u80fd\u770b\u5230\uff0c\u4e0d\u7528\u8bb0\u5f97\u5148 pull \u518d\u5e72\u6d3b\u3002\u952e\u76d8\u515a\u4e5f\u522b\u6025\u7740\u5212\u8d70\uff0c\u8f6f\u4ef6\u5185\u5e38\u7528\u64cd\u4f5c\u90fd\u6709\u5feb\u6377\u952e\uff0cCtrl+Shift+G <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"class_list":["post-222","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=222"}],"version-history":[{"count":0,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/222\/revisions"}],"wp:attachment":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}